Implement access to a global toplevel GdkWindow in a way that does not require always having an extra GtkWindow.
And don't use "RootWindow" in the name, it is not a root window in the X11 sense. Also add wxGetPangoContext() to get access to a PangoContext. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -164,22 +164,6 @@ bool wxApp::DoIdle()
|
||||
return keepSource;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Access to the root window global
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
GtkWidget* wxGetRootWindow()
|
||||
{
|
||||
static GtkWidget *s_RootWindow = NULL;
|
||||
|
||||
if (s_RootWindow == NULL)
|
||||
{
|
||||
s_RootWindow = gtk_window_new( GTK_WINDOW_TOPLEVEL );
|
||||
gtk_widget_realize( s_RootWindow );
|
||||
}
|
||||
return s_RootWindow;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxApp
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user