summaryrefslogtreecommitdiff
path: root/gtk/gtkdnd.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/gtkdnd.c
parent2ee17f48758dd18eecaf1ebfb9b0f284f2b8a001 (diff)
downloadgtk+-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/gtkdnd.c')
-rw-r--r--gtk/gtkdnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 5c35b1e465..dd5ed8745c 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -593,7 +593,8 @@ gtk_drag_get_cursor (GdkDisplay *display,
gint width, height;
GdkPixbuf *cursor_pixbuf, *pixbuf;
GtkAnchorType icon_anchor;
- gint hot_x, hot_y, icon_x, icon_y, ref_x, ref_y;
+ gint hot_x = 0, hot_y = 0;
+ gint icon_x, icon_y, ref_x, ref_y;
gboolean found;
if (info->drag_cursors[i] != NULL)
@@ -609,7 +610,6 @@ gtk_drag_get_cursor (GdkDisplay *display,
if (!cursor_pixbuf)
{
cursor_pixbuf = g_object_ref (drag_cursors[i].pixbuf);
- hot_x = hot_y = 0;
icon_anchor = GTK_ANCHOR_NORTH;
icon_x = icon_y = -2;
}