+
+gboolean tasktree_button_press_event_cbk(GtkWidget *widget,
+ GdkEventButton *evt,
+ gpointer data)
+{
+ log_fct_enter();
+
+ if (evt->button == 3)
+ gtk_menu_popup(w_menu,
+ NULL, NULL, NULL, NULL, evt->button, evt->time);
+
+ log_fct_exit();
+
+ return FALSE;
+}
+
+void tasktree_visible_activate_cbk(GtkAction *action, gpointer data)
+{
+ gboolean b;
+ int id;
+ const char *aname, *key;
+
+ aname = gtk_action_get_name(action);
+
+ if (!strcmp(aname, "tasktree_id_visible"))
+ id = COL_ID;
+ else if (!strcmp(aname, "tasktree_description_visible"))
+ id = COL_DESCRIPTION;
+ else if (!strcmp(aname, "tasktree_project_visible"))
+ id = COL_PROJECT;
+ else if (!strcmp(aname, "tasktree_uuid_visible"))
+ id = COL_UUID;
+ else if (!strcmp(aname, "tasktree_priority_visible"))
+ id = COL_PRIORITY;
+ else if (!strcmp(aname, "tasktree_urgency_visible"))
+ id = COL_URGENCY;
+ else if (!strcmp(aname, "tasktree_creation_date_visible"))
+ id = COL_CREATION_DATE;
+ else if (!strcmp(aname, "tasktree_due_visible"))
+ id = COL_DUE;
+ else if (!strcmp(aname, "tasktree_start_visible"))
+ id = COL_START;
+ else
+ id = -1;
+
+ if (id != -1) {
+ key = SETTINGS_KEYS[id];
+ b = g_settings_get_boolean(gsettings, key);
+ g_settings_set_boolean(gsettings, key, !b);
+ gtk_tree_view_column_set_visible(w_cols[id], !b);
+ }
+}