Fix compiler warnings

svn path=/trunk/; revision=17062
This commit is contained in:
Matthias Clasen 2007-01-04 14:24:37 +00:00
parent b298dfbe8f
commit 6fb261bbad
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-01-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcolorsel.c: Fix some compiler warnings.
2007-01-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c: Rework the beep-on-uninserted-text

View File

@ -787,6 +787,7 @@ palette_change_color (GtkWidget *drawing_area,
gdk_color.red = UNSCALE (color[0]);
gdk_color.green = UNSCALE (color[1]);
gdk_color.blue = UNSCALE (color[2]);
gdk_color.pixel = 0;
x = 0;
y = 0; /* Quiet GCC */
@ -1441,7 +1442,7 @@ get_screen_color (GtkWidget *button)
gtk_widget_add_events (grab_widget,
GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK | GDK_POINTER_MOTION_MASK);
toplevel = gtk_widget_get_toplevel (colorsel);
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (colorsel));
if (GTK_IS_WINDOW (toplevel))
{