1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>

* gdesktop.c (desktop_icon_drag_start): Do not attempt to use
	icons if we could not load the images for the icon.
This commit is contained in:
Miguel de Icaza 1998-05-05 08:08:56 +00:00
parent 4ab86b1b5b
commit 41871990d5
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,8 @@
1998-05-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_drag_start): Do not attempt to use
icons if we could not load the images for the icon.
* gwidget.c (x_update_input): Keep the cursor always visible.
* gview.c (view): Use a buttonbar widget.

View File

@ -735,10 +735,12 @@ desktop_icon_drag_start (GtkWidget *widget, GdkEvent *event, desktop_icon_t *di)
/* FIXME: we are using the same icon for ok and not ok drags */
root_drag_ok_window = make_transparent_window (fname);
root_drag_not_ok_window = make_transparent_window (fname);
gdk_dnd_set_drag_shape (root_drag_ok_window->window, &root_icon_drag_hotspot,
root_drag_not_ok_window->window, &root_icon_drag_hotspot);
gtk_widget_show (root_drag_not_ok_window);
gtk_widget_show (root_drag_ok_window);
if (root_drag_not_ok_window && root_drag_ok_window){
gdk_dnd_set_drag_shape (root_drag_ok_window->window, &root_icon_drag_hotspot,
root_drag_not_ok_window->window, &root_icon_drag_hotspot);
gtk_widget_show (root_drag_not_ok_window);
gtk_widget_show (root_drag_ok_window);
}
free (fname);
}
}