[goffice] GOActionComboPixmaps: make this work also for icon names.



commit a8a8d0f7566fa1f0d135f5455769ec6b87f9ffed
Author: Morten Welinder <terra gnome org>
Date:   Fri Jan 9 13:02:34 2015 -0500

    GOActionComboPixmaps: make this work also for icon names.

 ChangeLog                             |    5 +++++
 goffice/gtk/go-action-combo-pixmaps.c |    4 +---
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b55d3d5..042ac2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-09  Morten Welinder  <terra gnome org>
+
+       * goffice/gtk/go-action-combo-pixmaps.c
+       (go_action_combo_pixmaps_create_menu_item): Use make_icon.
+
 2015-01-08  Morten Welinder  <terra gnome org>
 
        * goffice/canvas/goc-widget.c (goc_offscreen_box_unrealize): Undo
diff --git a/goffice/gtk/go-action-combo-pixmaps.c b/goffice/gtk/go-action-combo-pixmaps.c
index f63e3a8..775f1f8 100644
--- a/goffice/gtk/go-action-combo-pixmaps.c
+++ b/goffice/gtk/go-action-combo-pixmaps.c
@@ -199,9 +199,7 @@ go_action_combo_pixmaps_create_menu_item (GtkAction *a)
        for ( ; el->stock_id != NULL ; el++)
                go_menu_pixmaps_add_element
                        (submenu,
-                        gtk_widget_render_icon_pixbuf (GTK_WIDGET (item),
-                                                       el->stock_id,
-                                                       GTK_ICON_SIZE_MENU),
+                        make_icon (a, el->stock_id, item),
                         el->id,
                         gettext (el->untranslated_tooltip));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]