summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdefault.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2005-06-16 22:35:45 +0000
committerManish Singh <yosh@src.gnome.org>2005-06-16 22:35:45 +0000
commitbe53636ec1c3507e079ffd22af38afb2346a3681 (patch)
tree130a3f39978eeeb829d217e5904c2fc2d19641ac /gtk/gtkfilechooserdefault.c
parent2ee17f48758dd18eecaf1ebfb9b0f284f2b8a001 (diff)
downloadgdk-pixbuf-be53636ec1c3507e079ffd22af38afb2346a3681.tar.gz
remove unused variable.
Thu Jun 16 15:33:42 2005 Manish Singh <yosh@gimp.org> * gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable. * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use g_return_val_if_fail. * gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y for all cases. * gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image takes a GtkWidget, not a GtkImage.
Diffstat (limited to 'gtk/gtkfilechooserdefault.c')
-rw-r--r--gtk/gtkfilechooserdefault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index e22587c50..202e98414 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -1878,7 +1878,7 @@ button_new (GtkFileChooserDefault *impl,
button = gtk_button_new_with_mnemonic (text);
image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_BUTTON);
- gtk_button_set_image (GTK_BUTTON (button), GTK_IMAGE (image));
+ gtk_button_set_image (GTK_BUTTON (button), image);
gtk_widget_set_sensitive (button, sensitive);
g_signal_connect (button, "clicked", callback, impl);