Let the icon be configurable too

This commit is contained in:
Pierre Pronchery 2018-01-16 06:16:25 +01:00
parent 6862268ff5
commit 9f962df89d

View File

@ -161,7 +161,9 @@ static Menu * _menu_init(PanelAppletHelper * helper, GtkWidget ** widget)
#else
hbox = gtk_hbox_new(FALSE, 4);
#endif
image = gtk_image_new_from_icon_name("start-here",
if((p = helper->config_get(helper->panel, "menu", "icon")) == NULL)
p = "start-here";
image = gtk_image_new_from_icon_name(p,
panel_window_get_icon_size(helper->window));
gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, TRUE, 0);
/* add some text if configured so */