From 0ddbdf18a2cfcf54f591b1372bb3eb9dde9728e2 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Thu, 8 Nov 2018 19:36:18 +0100 Subject: This improve symbolic icon rendering moving it to CSS only. There is places in the UI whar we claim for a Pixbuf. Currently its not possible render them as symbolic without the previos hack --- src/ui/interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/interface.cpp') diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp index 5c0e44b44..f81d252de 100644 --- a/src/ui/interface.cpp +++ b/src/ui/interface.cpp @@ -504,7 +504,7 @@ static GtkWidget *sp_ui_menu_append_item_from_verb(GtkMenu *men // If there is an image associated with the action, then we can add it as an icon for the menu item. if (show_icon && action->image) { item->set_name("ImageMenuItem"); // custom name to identify our "ImageMenuItems" - GtkWidget *icon = GTK_WIDGET(sp_get_icon_image(action->image, GTK_ICON_SIZE_MENU)->gobj()); + GtkWidget *icon = sp_get_icon_image(action->image, GTK_ICON_SIZE_MENU); // create a box to hold icon and label as GtkMenuItem derives from GtkBin and can only hold one child GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); -- cgit v1.2.3