summaryrefslogtreecommitdiff
path: root/gdk/gdkglobals.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-10-31 21:12:23 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-10-31 21:12:23 +0000
commit550bf181d2e754425aa592f61108a0a0c9139256 (patch)
tree82047181585ec2c8cc9bf85b8d35a88e27fc93ee /gdk/gdkglobals.c
parent089a38826365adbd8153318eb740c6b44cb9c49d (diff)
downloadgtk+-550bf181d2e754425aa592f61108a0a0c9139256.tar.gz
Add a --screen option for setting the default screen. (Based on a patch
Thu Oct 31 12:40:39 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdk.[ch] gdk/gdkglobals.c gdk/gdkinternals.h gdk/{x11,win32,linux-fb}/gdkscreen-{x11,win32,linux-fb}.c: Add a --screen option for setting the default screen. (Based on a patch from Balamurali Viswanathan, #81145) * gdk/gdk.c gdkdisplay.h gtk/gtkmain.c: Add gdk_display_open_default_libgtk_only(), so gtk_init_check() and gdk_init_check() can share the same behavior w.r.t. --screen. * gdk/gdk.[ch]: Make gdk_get_display_arg_name() G_CONST_RETURN. * gdk/x11/gdkselection-x11.c (gdk_selection_property_get): Suppress a spurious warning. * tests/testgtkrc: Remove someleft-over commented out includes that could be confusing.
Diffstat (limited to 'gdk/gdkglobals.c')
-rw-r--r--gdk/gdkglobals.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkglobals.c b/gdk/gdkglobals.c
index 052938952a..a4ec657457 100644
--- a/gdk/gdkglobals.c
+++ b/gdk/gdkglobals.c
@@ -35,6 +35,8 @@ gint _gdk_error_code = 0;
gint _gdk_error_warnings = TRUE;
GList *_gdk_default_filters = NULL;
gchar *_gdk_display_name = NULL;
+gint _gdk_screen_number = -1;
+gchar *_gdk_display_arg_name = NULL;
GSList *_gdk_displays = NULL;