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.
This commit is contained in:
Manish Singh
2005-06-16 22:35:45 +00:00
committed by Manish Singh
parent 2ee17f4875
commit be53636ec1
7 changed files with 43 additions and 5 deletions

View File

@ -396,7 +396,6 @@ update_cursor (gpointer key,
gpointer data)
{
Display *xdisplay;
GdkWindow *window;
GdkCursor *cursor;
GdkCursorPrivate *private;
Cursor new_cursor = None;

View File

@ -2896,7 +2896,7 @@ _gdk_x11_window_get_cursor (GdkWindow *window)
GdkWindowObject *private;
GdkWindowImplX11 *impl;
g_return_if_fail (GDK_IS_WINDOW (window));
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
private = (GdkWindowObject *)window;
impl = GDK_WINDOW_IMPL_X11 (private->impl);