Pass screen to visual init (no default screen is available yet)

https://bugzilla.gnome.org/show_bug.cgi?id=700444
This commit is contained in:
Руслан Ижбулатов 2013-05-04 12:05:46 +04:00 committed by Alexander Larsson
parent ae35951a73
commit b0016252cf
3 changed files with 4 additions and 4 deletions

View File

@ -206,7 +206,7 @@ _gdk_win32_display_open (const gchar *display_name)
_gdk_screen = g_object_new (GDK_TYPE_WIN32_SCREEN, NULL);
_gdk_monitor_init ();
_gdk_visual_init ();
_gdk_visual_init (_gdk_screen);
_gdk_windowing_window_init (_gdk_screen);
_gdk_events_init ();
_gdk_input_init (_gdk_display);

View File

@ -502,7 +502,7 @@ void _gdk_win32_windowing_init (void);
void _gdk_windowing_window_init (GdkScreen *screen);
void _gdk_root_window_size_init (void);
void _gdk_monitor_init(void);
void _gdk_visual_init (void);
void _gdk_visual_init (GdkScreen *screen);
void _gdk_dnd_init (void);
void _gdk_events_init (void);
void _gdk_input_init (GdkDisplay *display);

View File

@ -42,7 +42,7 @@ static gint available_depths[1];
static GdkVisualType available_types[1];
void
_gdk_visual_init (void)
_gdk_visual_init (GdkScreen *screen)
{
struct
{
@ -61,7 +61,7 @@ _gdk_visual_init (void)
gint map_entries = 0;
system_visual = g_object_new (GDK_TYPE_VISUAL, NULL);
system_visual->screen = gdk_screen_get_default();
system_visual->screen = screen;
if (rastercaps & RC_PALETTE)
{