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.
This commit is contained in:
Owen Taylor
2002-10-31 21:12:23 +00:00
committed by Owen Taylor
parent 089a388263
commit 550bf181d2
12 changed files with 123 additions and 48 deletions

View File

@ -261,7 +261,7 @@ gdk_selection_property_get (GdkWindow *requestor,
{
gulong nitems;
gulong nbytes;
gulong length;
gulong length = 0; /* Quiet GCC */
Atom prop_type;
gint prop_format;
guchar *t = NULL;