Warn if the icon cannot be loaded. (#323504, Kjartan Maraas)

2005-12-14  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_set_icon_name): Warn if the icon
	cannot be loaded.  (#323504, Kjartan Maraas)
This commit is contained in:
Matthias Clasen 2005-12-14 19:14:14 +00:00 committed by Matthias Clasen
parent b540c366cc
commit 2ea833db9f
3 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2005-12-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c (gtk_drag_set_icon_name): Warn if the icon
cannot be loaded. (#323504, Kjartan Maraas)
* gtk/gtktreeview.c (gtk_tree_view_class_init): Add docs
for the row-activated signal. (#324044, Davyd Madeley)

View File

@ -1,5 +1,8 @@
2005-12-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c (gtk_drag_set_icon_name): Warn if the icon
cannot be loaded. (#323504, Kjartan Maraas)
* gtk/gtktreeview.c (gtk_tree_view_class_init): Add docs
for the row-activated signal. (#324044, Davyd Madeley)

View File

@ -3050,7 +3050,10 @@ gtk_drag_set_icon_name (GdkDragContext *context,
pixbuf = gtk_icon_theme_load_icon (icon_theme, icon_name,
icon_size, 0, NULL);
set_icon_stock_pixbuf (context, NULL, pixbuf, hot_x, hot_y, FALSE);
if (pixbuf)
set_icon_stock_pixbuf (context, NULL, pixbuf, hot_x, hot_y, FALSE);
else
g_warning ("Cannot load drag icon from icon name %s", icon_name);
}
/**