mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Allow builtin icons when loading themed icons, and don't leak a
2008-12-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c: Allow builtin icons when loading themed icons, and don't leak a GtkIconInfo. svn path=/trunk/; revision=21940
This commit is contained in:
parent
3276458c7b
commit
b9ff8712c8
@ -1,3 +1,8 @@
|
||||
2008-12-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c: Allow builtin icons when loading themed icons,
|
||||
and don't leak a GtkIconInfo.
|
||||
|
||||
2008-12-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c: Emit ::icon-pressed regardless which button was
|
||||
|
@ -6006,9 +6006,14 @@ gtk_entry_ensure_pixbuf (GtkEntry *entry,
|
||||
|
||||
info = gtk_icon_theme_lookup_by_gicon (icon_theme,
|
||||
icon_info->gicon,
|
||||
MIN (width, height), 0);
|
||||
MIN (width, height),
|
||||
GTK_ICON_LOOKUP_USE_BUILTIN);
|
||||
if (info)
|
||||
{
|
||||
icon_info->pixbuf = gtk_icon_info_load_icon (info, NULL);
|
||||
gtk_icon_info_free (info);
|
||||
}
|
||||
|
||||
icon_info->pixbuf = gtk_icon_info_load_icon (info, NULL);
|
||||
if (icon_info->pixbuf == NULL)
|
||||
icon_info->pixbuf = gtk_widget_render_icon (GTK_WIDGET (entry),
|
||||
GTK_STOCK_MISSING_IMAGE,
|
||||
|
Loading…
Reference in New Issue
Block a user