win32: Call windowing init from display_class_init()

This follows the same reasoning as the X11 backend in commit
0122a9da8e
This commit is contained in:
Benjamin Otte 2013-05-02 15:36:41 +02:00
parent 7cecc8e524
commit 8762791e82
2 changed files with 2 additions and 8 deletions

View File

@ -688,4 +688,6 @@ gdk_win32_display_class_init (GdkWin32DisplayClass *klass)
display_class->convert_selection = _gdk_win32_display_convert_selection;
display_class->text_property_to_utf8_list = _gdk_win32_display_text_property_to_utf8_list;
display_class->utf8_to_string_target = _gdk_win32_display_utf8_to_string_target;
_gdk_win32_windowing_init ();
}

View File

@ -41,14 +41,6 @@ G_DEFINE_TYPE (GdkWin32DisplayManager, gdk_win32_display_manager, GDK_TYPE_DISPL
static void
gdk_win32_display_manager_init (GdkWin32DisplayManager *manager)
{
static once = TRUE;
/* relies on displaymanager being a singleton , but our init functions
* call gtk_diplay_maanger_get() again */
if (once)
{
once = FALSE;
_gdk_win32_windowing_init ();
}
}
static void