forked from AuroraMiddleware/gtk
slight cleanup
This commit is contained in:
parent
aaed59e21d
commit
01f9d21e9e
@ -604,9 +604,12 @@ gtk_drag_get_cursor (GdkDisplay *display,
|
|||||||
info->drag_cursors[i] = NULL;
|
info->drag_cursors[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
hot_x = hot_y = 0;
|
|
||||||
icon_x = info->hot_x;
|
icon_x = info->hot_x;
|
||||||
icon_y = info->hot_y;
|
icon_y = info->hot_y;
|
||||||
|
icon_width = gdk_pixbuf_get_width (info->icon_pixbuf);
|
||||||
|
icon_height = gdk_pixbuf_get_height (info->icon_pixbuf);
|
||||||
|
|
||||||
|
hot_x = hot_y = 0;
|
||||||
cursor_pixbuf = gdk_cursor_get_image (drag_cursors[i].cursor);
|
cursor_pixbuf = gdk_cursor_get_image (drag_cursors[i].cursor);
|
||||||
if (!cursor_pixbuf)
|
if (!cursor_pixbuf)
|
||||||
cursor_pixbuf = g_object_ref (drag_cursors[i].pixbuf);
|
cursor_pixbuf = g_object_ref (drag_cursors[i].pixbuf);
|
||||||
@ -695,8 +698,6 @@ gtk_drag_get_cursor (GdkDisplay *display,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
icon_width = gdk_pixbuf_get_width (info->icon_pixbuf);
|
|
||||||
icon_height = gdk_pixbuf_get_height (info->icon_pixbuf);
|
|
||||||
cursor_width = gdk_pixbuf_get_width (cursor_pixbuf);
|
cursor_width = gdk_pixbuf_get_width (cursor_pixbuf);
|
||||||
cursor_height = gdk_pixbuf_get_height (cursor_pixbuf);
|
cursor_height = gdk_pixbuf_get_height (cursor_pixbuf);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user