From 153de1aa454059a787a8124765e3a47a8096b63c Mon Sep 17 00:00:00 2001 From: o9000 Date: Sat, 25 Mar 2017 15:19:57 +0100 Subject: [PATCH] Button: bugfix --- src/button/button.c | 2 +- src/tint2conf/properties.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/button/button.c b/src/button/button.c index e898465..60f0e2b 100644 --- a/src/button/button.c +++ b/src/button/button.c @@ -90,7 +90,7 @@ void init_button() { GList *to_remove = panel_config.button_list; for (int k = 0; k < strlen(panel_items_order) && to_remove; k++) { - if (panel_items_order[k] == 'E') { + if (panel_items_order[k] == 'P') { to_remove = to_remove->next; } } diff --git a/src/tint2conf/properties.c b/src/tint2conf/properties.c index 009c462..f9d4391 100644 --- a/src/tint2conf/properties.c +++ b/src/tint2conf/properties.c @@ -1053,6 +1053,11 @@ void create_panel_items(GtkWidget *parent) itemsColName, _("Executor"), itemsColValue, "E", -1); + gtk_list_store_append(all_items, &iter); + gtk_list_store_set(all_items, &iter, + itemsColName, _("Button"), + itemsColValue, "P", + -1); panel_items_view = gtk_tree_view_new(); gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(panel_items_view),