mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
ae35951a73
commit
b0016252cf
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user