have a dummy case GDK_OWNER_CHANGE in switch statements to avoid gcc

Fri Jul  9 15:33:55 2004  Manish Singh  <yosh@gimp.org>

        * gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch
        statements to avoid gcc warnings about not all enum values handled.

        * gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in
        #ifdef HAVE_XFIXES.
This commit is contained in:
Manish Singh 2004-07-09 22:42:19 +00:00 committed by Manish Singh
parent 2633a03012
commit b22258e6a6
6 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,11 @@
Fri Jul 9 15:33:55 2004 Manish Singh <yosh@gimp.org>
* gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch
statements to avoid gcc warnings about not all enum values handled.
* gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in
#ifdef HAVE_XFIXES.
Fri Jul 9 23:26:09 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.h (struct _GdkWindowImplX11): Add an

View File

@ -1,3 +1,11 @@
Fri Jul 9 15:33:55 2004 Manish Singh <yosh@gimp.org>
* gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch
statements to avoid gcc warnings about not all enum values handled.
* gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in
#ifdef HAVE_XFIXES.
Fri Jul 9 23:26:09 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.h (struct _GdkWindowImplX11): Add an

View File

@ -1,3 +1,11 @@
Fri Jul 9 15:33:55 2004 Manish Singh <yosh@gimp.org>
* gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch
statements to avoid gcc warnings about not all enum values handled.
* gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in
#ifdef HAVE_XFIXES.
Fri Jul 9 23:26:09 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.h (struct _GdkWindowImplX11): Add an

View File

@ -1,3 +1,11 @@
Fri Jul 9 15:33:55 2004 Manish Singh <yosh@gimp.org>
* gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch
statements to avoid gcc warnings about not all enum values handled.
* gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in
#ifdef HAVE_XFIXES.
Fri Jul 9 23:26:09 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/x11/gdkwindow-x11.h (struct _GdkWindowImplX11): Add an

View File

@ -559,6 +559,7 @@ gdk_event_get_time (GdkEvent *event)
case GDK_UNMAP:
case GDK_WINDOW_STATE:
case GDK_SETTING:
case GDK_OWNER_CHANGE:
/* return current time */
break;
}
@ -634,6 +635,7 @@ gdk_event_get_state (GdkEvent *event,
case GDK_UNMAP:
case GDK_WINDOW_STATE:
case GDK_SETTING:
case GDK_OWNER_CHANGE:
/* no state field */
break;
}

View File

@ -151,7 +151,9 @@ gdk_display_open (const gchar *display_name)
XClassHint *class_hint;
gulong pid;
gint i;
#ifdef HAVE_XFIXES
gint ignore;
#endif
xdisplay = XOpenDisplay (display_name);
if (!xdisplay)