forked from AuroraMiddleware/gtk
Reorder code so that we don't get a g_warning message every time we
* gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so that we don't get a g_warning message every time we register a new icon size. * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by using pixel variable of the correct type.
This commit is contained in:
parent
94239d144e
commit
f500db339a
@ -1,3 +1,12 @@
|
||||
2001-07-18 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
|
||||
that we don't get a g_warning message every time we register a new
|
||||
icon size.
|
||||
|
||||
* gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
|
||||
using pixel variable of the correct type.
|
||||
|
||||
Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
|
||||
|
@ -1,3 +1,12 @@
|
||||
2001-07-18 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
|
||||
that we don't get a g_warning message every time we register a new
|
||||
icon size.
|
||||
|
||||
* gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
|
||||
using pixel variable of the correct type.
|
||||
|
||||
Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
|
||||
|
@ -1,3 +1,12 @@
|
||||
2001-07-18 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
|
||||
that we don't get a g_warning message every time we register a new
|
||||
icon size.
|
||||
|
||||
* gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
|
||||
using pixel variable of the correct type.
|
||||
|
||||
Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
|
||||
|
@ -1,3 +1,12 @@
|
||||
2001-07-18 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
|
||||
that we don't get a g_warning message every time we register a new
|
||||
icon size.
|
||||
|
||||
* gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
|
||||
using pixel variable of the correct type.
|
||||
|
||||
Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
|
||||
|
@ -1,3 +1,12 @@
|
||||
2001-07-18 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
|
||||
that we don't get a g_warning message every time we register a new
|
||||
icon size.
|
||||
|
||||
* gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
|
||||
using pixel variable of the correct type.
|
||||
|
||||
Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
|
||||
|
@ -1,3 +1,12 @@
|
||||
2001-07-18 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
|
||||
that we don't get a g_warning message every time we register a new
|
||||
icon size.
|
||||
|
||||
* gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
|
||||
using pixel variable of the correct type.
|
||||
|
||||
Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
|
||||
|
@ -1,3 +1,12 @@
|
||||
2001-07-18 Darin Adler <darin@bentspoon.com>
|
||||
|
||||
* gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
|
||||
that we don't get a g_warning message every time we register a new
|
||||
icon size.
|
||||
|
||||
* gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
|
||||
using pixel variable of the correct type.
|
||||
|
||||
Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
|
||||
|
@ -610,7 +610,7 @@ gdk_colormap_alloc1 (GdkColormap *colormap,
|
||||
if (private->info[ret->pixel].ref_count) /* got a duplicate */
|
||||
{
|
||||
XFreeColors (private->xdisplay, private->xcolormap,
|
||||
&ret->pixel, 1, 0);
|
||||
&xcolor.pixel, 1, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -727,12 +727,11 @@ gtk_icon_size_register (const gchar *name,
|
||||
icon_sizes[icon_sizes_used].width = width;
|
||||
icon_sizes[icon_sizes_used].height = height;
|
||||
|
||||
/* alias to self. */
|
||||
gtk_icon_size_register_alias (icon_sizes[icon_sizes_used].name,
|
||||
icon_sizes[icon_sizes_used].size);
|
||||
|
||||
++icon_sizes_used;
|
||||
|
||||
/* alias to self. */
|
||||
gtk_icon_size_register_alias (name, icon_sizes_used - 1);
|
||||
|
||||
return icon_sizes_used - 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user