Button: bugfix

This commit is contained in:
o9000 2017-03-25 15:19:57 +01:00
parent fc883a5dd8
commit 153de1aa45
2 changed files with 6 additions and 1 deletions

View file

@ -90,7 +90,7 @@ void init_button()
{ {
GList *to_remove = panel_config.button_list; GList *to_remove = panel_config.button_list;
for (int k = 0; k < strlen(panel_items_order) && to_remove; k++) { 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; to_remove = to_remove->next;
} }
} }

View file

@ -1053,6 +1053,11 @@ void create_panel_items(GtkWidget *parent)
itemsColName, _("Executor"), itemsColName, _("Executor"),
itemsColValue, "E", itemsColValue, "E",
-1); -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(); panel_items_view = gtk_tree_view_new();
gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(panel_items_view), gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(panel_items_view),