mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x.
Sat Jan 19 08:47:41 2002 Jeff Garzik <jgarzik@mandrakesoft.com> * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name): Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x. * gtk/gtkmain.c: Include sys/types.h if G_OS_UNIX. Fixes build with gcc 3.x and -ansi.
This commit is contained in:
parent
6f05c41a0a
commit
b292358479
@ -1,3 +1,11 @@
|
||||
Sat Jan 19 08:47:41 2002 Jeff Garzik <jgarzik@mandrakesoft.com>
|
||||
|
||||
* gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
|
||||
Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x.
|
||||
|
||||
* gtk/gtkmain.c: Include sys/types.h if G_OS_UNIX.
|
||||
Fixes build with gcc 3.x and -ansi.
|
||||
|
||||
Fri Jan 18 23:01:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Jan 19 08:47:41 2002 Jeff Garzik <jgarzik@mandrakesoft.com>
|
||||
|
||||
* gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
|
||||
Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x.
|
||||
|
||||
* gtk/gtkmain.c: Include sys/types.h if G_OS_UNIX.
|
||||
Fixes build with gcc 3.x and -ansi.
|
||||
|
||||
Fri Jan 18 23:01:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Jan 19 08:47:41 2002 Jeff Garzik <jgarzik@mandrakesoft.com>
|
||||
|
||||
* gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
|
||||
Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x.
|
||||
|
||||
* gtk/gtkmain.c: Include sys/types.h if G_OS_UNIX.
|
||||
Fixes build with gcc 3.x and -ansi.
|
||||
|
||||
Fri Jan 18 23:01:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Jan 19 08:47:41 2002 Jeff Garzik <jgarzik@mandrakesoft.com>
|
||||
|
||||
* gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
|
||||
Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x.
|
||||
|
||||
* gtk/gtkmain.c: Include sys/types.h if G_OS_UNIX.
|
||||
Fixes build with gcc 3.x and -ansi.
|
||||
|
||||
Fri Jan 18 23:01:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Jan 19 08:47:41 2002 Jeff Garzik <jgarzik@mandrakesoft.com>
|
||||
|
||||
* gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
|
||||
Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x.
|
||||
|
||||
* gtk/gtkmain.c: Include sys/types.h if G_OS_UNIX.
|
||||
Fixes build with gcc 3.x and -ansi.
|
||||
|
||||
Fri Jan 18 23:01:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Jan 19 08:47:41 2002 Jeff Garzik <jgarzik@mandrakesoft.com>
|
||||
|
||||
* gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
|
||||
Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x.
|
||||
|
||||
* gtk/gtkmain.c: Include sys/types.h if G_OS_UNIX.
|
||||
Fixes build with gcc 3.x and -ansi.
|
||||
|
||||
Fri Jan 18 23:01:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Jan 19 08:47:41 2002 Jeff Garzik <jgarzik@mandrakesoft.com>
|
||||
|
||||
* gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
|
||||
Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x.
|
||||
|
||||
* gtk/gtkmain.c: Include sys/types.h if G_OS_UNIX.
|
||||
Fixes build with gcc 3.x and -ansi.
|
||||
|
||||
Fri Jan 18 23:01:37 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
|
||||
|
@ -72,17 +72,28 @@ gdk_atom_name (GdkAtom atom)
|
||||
|
||||
switch (GPOINTER_TO_UINT (atom))
|
||||
{
|
||||
case GDK_SELECTION_PRIMARY: return g_strdup ("PRIMARY");
|
||||
case GDK_SELECTION_SECONDARY: return g_strdup ("SECONDARY");
|
||||
case GDK_SELECTION_CLIPBOARD: return g_strdup ("CLIPBOARD");
|
||||
case GDK_SELECTION_TYPE_ATOM: return g_strdup ("ATOM");
|
||||
case GDK_SELECTION_TYPE_BITMAP: return g_strdup ("BITMAP");
|
||||
case GDK_SELECTION_TYPE_COLORMAP: return g_strdup ("COLORMAP");
|
||||
case GDK_SELECTION_TYPE_DRAWABLE: return g_strdup ("DRAWABLE");
|
||||
case GDK_SELECTION_TYPE_INTEGER: return g_strdup ("INTEGER");
|
||||
case GDK_SELECTION_TYPE_PIXMAP: return g_strdup ("PIXMAP");
|
||||
case GDK_SELECTION_TYPE_WINDOW: return g_strdup ("WINDOW");
|
||||
case GDK_SELECTION_TYPE_STRING: return g_strdup ("STRING");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_PRIMARY):
|
||||
return g_strdup ("PRIMARY");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_SECONDARY):
|
||||
return g_strdup ("SECONDARY");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_CLIPBOARD):
|
||||
return g_strdup ("CLIPBOARD");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_TYPE_ATOM):
|
||||
return g_strdup ("ATOM");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_TYPE_BITMAP):
|
||||
return g_strdup ("BITMAP");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_TYPE_COLORMAP):
|
||||
return g_strdup ("COLORMAP");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_TYPE_DRAWABLE):
|
||||
return g_strdup ("DRAWABLE");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_TYPE_INTEGER):
|
||||
return g_strdup ("INTEGER");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_TYPE_PIXMAP):
|
||||
return g_strdup ("PIXMAP");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_TYPE_WINDOW):
|
||||
return g_strdup ("WINDOW");
|
||||
case GPOINTER_TO_UINT (GDK_SELECTION_TYPE_STRING):
|
||||
return g_strdup ("STRING");
|
||||
default:
|
||||
g_warning (G_STRLOC "Invalid atom");
|
||||
return g_strdup ("<invalid>");
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include <gmodule.h>
|
||||
#ifdef G_OS_UNIX
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h> /* For uid_t, gid_t */
|
||||
#endif
|
||||
#ifdef G_OS_WIN32
|
||||
#define STRICT
|
||||
|
Loading…
Reference in New Issue
Block a user