mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
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:
parent
b540c366cc
commit
2ea833db9f
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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);
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user