[anjuta/gsettings-migration: 40/65] gtodo: incomplete port to GSettings
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gsettings-migration: 40/65] gtodo: incomplete port to GSettings
- Date: Sun, 17 Oct 2010 09:36:07 +0000 (UTC)
commit ec1c708a923df7423c97c2574bb91fcc30548f9b
Author: Johannes Schmid <jhs gnome org>
Date: Sun Oct 10 12:15:13 2010 +0200
gtodo: incomplete port to GSettings
plugins/gtodo/anjuta-gtodo.gschema-part.xml | 3 +
plugins/gtodo/callback.c | 9 ++-
plugins/gtodo/interface.c | 131 +++++++++++++--------------
plugins/gtodo/list_tooltip.c | 57 ------------
plugins/gtodo/main.h | 2 +-
plugins/gtodo/preferences.c | 39 +++------
6 files changed, 85 insertions(+), 156 deletions(-)
---
diff --git a/plugins/gtodo/anjuta-gtodo.gschema-part.xml b/plugins/gtodo/anjuta-gtodo.gschema-part.xml
index e69de29..eef6552 100644
--- a/plugins/gtodo/anjuta-gtodo.gschema-part.xml
+++ b/plugins/gtodo/anjuta-gtodo.gschema-part.xml
@@ -0,0 +1,3 @@
+<key name="sourceview-style" type="s">
+ <default>""</default>
+</key>
\ No newline at end of file
diff --git a/plugins/gtodo/callback.c b/plugins/gtodo/callback.c
index f911fb4..1c98325 100644
--- a/plugins/gtodo/callback.c
+++ b/plugins/gtodo/callback.c
@@ -1,6 +1,9 @@
#include <gtk/gtk.h>
#include "main.h"
+#define GSETTINGS_SCHEMA "org.gnome.anjuta.gtodo"
+#define PREFS_LAST_CATEGORY "gtodo-last-category"
+
void remove_todo_item(GtkWidget *fake, gboolean internall){
GtkTreeSelection *selection;
GtkTreeIter iter;
@@ -39,12 +42,13 @@ void category_changed(void)
{
if(cl != NULL)
{
+ GSettings *settings = g_settings_new (GSETTINGS_SCHEMA);
int i = gtk_combo_box_get_active(GTK_COMBO_BOX(mw.option));
if (i < 0) return;
if(i != 0)if( mw.mitems == NULL || mw.mitems[i-2] == NULL) return;
if(i == categorys+3)
{
- int j = anjuta_preferences_get_int (preferences, "gtodo-last-category");
+ int j = g_settings_get_int (settings, PREFS_LAST_CATEGORY);
category_manager();
if(j < categorys+3 && mw.mitems != NULL && mw.mitems[j-2] != NULL) gtk_combo_box_set_active(GTK_COMBO_BOX(mw.option),j);
gtk_list_store_clear(mw.list);
@@ -53,7 +57,8 @@ void category_changed(void)
}
gtk_list_store_clear(mw.list);
load_category();
- anjuta_preferences_set_int (preferences, "gtodo-last-category", i);
+ g_settings_set_int (settings, PREFS_LAST_CATEGORY, i);
+ g_object_unref (settings);
}
}
diff --git a/plugins/gtodo/interface.c b/plugins/gtodo/interface.c
index ff45ae6..058a6bb 100644
--- a/plugins/gtodo/interface.c
+++ b/plugins/gtodo/interface.c
@@ -7,96 +7,82 @@
#include <libanjuta/anjuta-preferences.h>
#include "debug_printf.h"
+#define GSETTINGS_SCHEMA "org.gnome.anjuta.gtodo"
+#define PREF_ASK_DELETE_CATEGORY "gtodo-ask-delete-category"
+#define PREF_SHOW_TOOLTIP "gtodo-show-tooltip"
+#define PREF_AUTO_PURGE "gtodo-auto-purge"
+#define PREF_AUTO_PURGE_DAYS "gtodo-auto-purge-days"
+#define PREF_DUE_COLOR "gtodo-due-color"
+#define PREF_DUE_TODAY_COLOR "gtodo-due-today-color"
+#define PREF_DUE_IN_DAYS_COLOR "gtodo-due-in-days-color"
+#define PREF_DUE_DAYS "gtodo-due-days"
+#define PREF_SORT_TYPE "gtodo-sort-type"
+#define PREF_SORT_ORDER "gtodo-sort-order"
+#define PREF_HIDE_DONE "gtodo-hide-done"
+#define PREF_HIDE_DUE "gtodo-hide-due"
+#define PREF_HIDE_NODATE "gtodo-hide-nodate"
+#define PREF_HL_INDAYS "gtodo-hl-indays"
+#define PREF_HL_DUE "gtodo-hl-due"
+#define PREF_HL_TODAY "gtodo-hl-today"
+
/* the main window struct */
mwindow mw;
/* settings struct */
sets settings;
-AnjutaPreferences *preferences;
-
-/* the connection to the xml file */
-GTodoClient *cl = NULL;
gulong shand;
GdkEventMotion *ovent;
static void stock_icons(void);
-static void backend_changed()
-{
- debug_printf(DEBUG_INFO, "Backend data changed, updating interface");
- read_categorys();
- category_changed();
-}
-
-static void set_read_only()
-{
- gtk_widget_set_sensitive (mw.tbdelbut, FALSE);
- gtk_label_set_text_with_mnemonic(GTK_LABEL(mw.tbeditlb),_("_View"));
- gtk_widget_set_sensitive(mw.tbaddbut, FALSE);
-}
-
void gtodo_load_settings ()
{
- debug_printf(DEBUG_INFO, "Creating anjuta preferences client");
- preferences = anjuta_preferences_default ();
-
- debug_printf(DEBUG_INFO, "Loading settings from anjuta preferences");
-
- settings.ask_delete_category = anjuta_preferences_get_bool(preferences, "gtodo-ask-delete-category");
+ GSettings* gsettings = g_settings_new (GSETTINGS_SCHEMA);
+ settings.ask_delete_category = g_settings_get_boolean (gsettings, PREF_ASK_DELETE_CATEGORY);
/* this is kinda (thanks gtk :-/) buggy.. gtk need fix first */
-// settings.list_tooltip = anjuta_preferences_get_bool(preferences, "gtodo-show-tooltip");
+// settings.list_tooltip = g_settings_get_boolean (settings, PREF_SHOW_TOOLTIP);
/* auto purge is default on.. */
- settings.auto_purge = anjuta_preferences_get_bool(preferences, "gtodo-auto-purge");
+ settings.auto_purge = g_settings_get_boolean (gsettings, PREF_AUTO_PURGE);
/* set default auto purge to a week */
- settings.purge_days = anjuta_preferences_get_int(preferences, "gtodo-auto-purge-days");
- settings.due_color = anjuta_preferences_get(preferences, "gtodo-due-color");
- settings.due_today_color = anjuta_preferences_get(preferences, "gtodo-due-today-color");
- settings.due_in_days_color = anjuta_preferences_get(preferences, "gtodo-due-in-days-color");
- settings.due_days = anjuta_preferences_get_int(preferences, "gtodo-due-days");
- settings.sorttype = anjuta_preferences_get_int(preferences, "gtodo-sort-type");
- settings.sortorder = anjuta_preferences_get_int(preferences, "gtodo-sort-order");
+ settings.purge_days = g_settings_get_int (gsettings, PREF_AUTO_PURGE_DAYS);
+ settings.due_color = g_settings_get_string (gsettings, PREF_DUE_COLOR);
+ settings.due_today_color = g_settings_get_string (gsettings, PREF_DUE_TODAY_COLOR);
+ settings.due_in_days_color = g_settings_get_string (gsettings, PREF_DUE_IN_DAYS_COLOR);
+ settings.due_days = g_settings_get_int (gsettings, PREF_DUE_DAYS);
+ settings.sorttype = g_settings_get_int (gsettings, PREF_SORT_TYPE);
+ settings.sortorder = g_settings_get_int (gsettings, PREF_SORT_ORDER);
/* treeview hide preferences.. */
- settings.hide_done = anjuta_preferences_get_bool(preferences, "gtodo-hide-done");
- settings.hide_due = anjuta_preferences_get_bool(preferences, "gtodo-hide-due");
- settings.hide_nodate = anjuta_preferences_get_bool(preferences, "gtodo-hide-nodate");
- settings.hl_indays = anjuta_preferences_get_bool(preferences,"gtodo-hl-indays");
- settings.hl_due = anjuta_preferences_get_bool(preferences,"gtodo-hl-due");
- settings.hl_today = anjuta_preferences_get_bool(preferences,"gtodo-hl-today");
- pref_set_notifications(preferences);
+ settings.hide_done = g_settings_get_boolean (gsettings, PREF_HIDE_DONE);
+ settings.hide_due = g_settings_get_boolean (gsettings, PREF_HIDE_DUE);
+ settings.hide_nodate = g_settings_get_boolean (gsettings, PREF_HIDE_NODATE);
+ settings.hl_indays = g_settings_get_boolean (gsettings, PREF_HL_INDAYS);
+ settings.hl_due = g_settings_get_boolean (gsettings, PREF_HL_DUE);
+ settings.hl_today = g_settings_get_boolean (gsettings, PREF_HL_TODAY);
+ pref_set_notifications(gsettings);
}
void gtodo_update_settings()
{
- if(settings.auto_purge && !gtodo_client_get_read_only(cl))
+ GSettings* gsettings = g_settings_new (GSETTINGS_SCHEMA);
+ if(settings.auto_purge)
{
- debug_printf(DEBUG_INFO, "Purging items that are past purge date");
get_all_past_purge();
}
/* read the categorys */
{
- int i = anjuta_preferences_get_int(preferences, "gtodo-last-category");
+ int i = g_settings_get_int (gsettings, "gtodo-last-category");
debug_printf(DEBUG_INFO, "Reading categories");
read_categorys();
gtk_combo_box_set_active(GTK_COMBO_BOX(mw.option),i);
}
/* nasty thing to fix the tooltip in the list */
- if(anjuta_preferences_get_bool(preferences, "gtodo-show-tooltip"))
+ if(g_settings_get_boolean (gsettings, "gtodo-show-tooltip"))
{
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(mw.treeview), FALSE);
}
-
- if(gtodo_client_get_read_only(cl))
- {
- debug_printf(DEBUG_WARNING, "Read only file detected, disabling severall options");
- set_read_only();
- }
-
- gtodo_client_set_changed_callback(cl,(void *)backend_changed ,NULL);
- g_timeout_add_seconds (300, (GSourceFunc)check_for_notification_event, NULL);
-
- check_for_notification_event();
+ g_object_unref (gsettings);
}
static void on_export_clicked_cb (GtkWidget *foo, gpointer user_data)
@@ -114,11 +100,8 @@ GtkWidget * gui_create_todo_widget()
/* used for the buttons @ the bottom */
GtkSizeGroup *sgroup;
/* TODO: make this compile time (path is now)*/
-
- if (!cl)
- cl = gtodo_client_new_default (NULL);
- if (!cl)
- return NULL;
+
+ GSettings* gsettings = g_settings_new (GSETTINGS_SCHEMA);
stock_icons();
/* add an verticall box */
@@ -205,21 +188,21 @@ GtkWidget * gui_create_todo_widget()
column = gtk_tree_view_column_new_with_attributes(_("Priority"), renderer, "text" , PRIOSTR,"strikethrough", DONE, "foreground-set", DUE,"foreground", COLOR, NULL);
gtk_tree_view_column_set_sort_column_id (column, PRIOSTR);
gtk_tree_view_append_column(GTK_TREE_VIEW(mw.treeview), column);
- if(!anjuta_preferences_get_bool(preferences, "gtodo-show-priority-column")) gtk_tree_view_column_set_visible(column, FALSE);
+ if(!g_settings_get_boolean (gsettings, "gtodo-show-priority-column")) gtk_tree_view_column_set_visible(column, FALSE);
renderer = gtk_cell_renderer_text_new();
g_object_set (renderer, "yalign", 0.0, NULL);
column = gtk_tree_view_column_new_with_attributes(_("Due date"), renderer, "text" , F_DATE,"strikethrough", DONE, "foreground-set", DUE,"foreground", COLOR,NULL);
gtk_tree_view_column_set_sort_column_id (column, F_DATE);
gtk_tree_view_append_column(GTK_TREE_VIEW(mw.treeview), column);
- if(!anjuta_preferences_get_bool(preferences, "gtodo-show-due-column")) gtk_tree_view_column_set_visible(column, FALSE);
+ if(!g_settings_get_boolean (gsettings, "gtodo-show-due-column")) gtk_tree_view_column_set_visible(column, FALSE);
renderer = gtk_cell_renderer_text_new();
g_object_set (renderer, "yalign", 0.0, NULL);
column = gtk_tree_view_column_new_with_attributes(_("Category"), renderer, "text" , CATEGORY,"strikethrough", DONE, "foreground-set", DUE,"foreground", COLOR,NULL);
gtk_tree_view_column_set_sort_column_id (column, CATEGORY);
gtk_tree_view_append_column(GTK_TREE_VIEW(mw.treeview), column);
- if(!anjuta_preferences_get_bool(preferences, "gtodo-show-category-column")) gtk_tree_view_column_set_visible(column, FALSE);
+ if(!g_settings_get_boolean (gsettings, "gtodo-show-category-column")) gtk_tree_view_column_set_visible(column, FALSE);
renderer = gtk_cell_renderer_text_new();
g_object_set (renderer, "yalign", 0.0, "wrap-mode", PANGO_WRAP_WORD, "wrap-width", 500, NULL);
@@ -241,6 +224,7 @@ GtkWidget * gui_create_todo_widget()
g_signal_connect(G_OBJECT (mw.treeview), "row-activated", G_CALLBACK (gui_add_todo_item), GINT_TO_POINTER(1));
// FIXME: set_sorting_menu_item();
gtodo_update_settings();
+ g_object_unref (gsettings);
return mw.vbox;
}
@@ -278,21 +262,26 @@ static void stock_icons()
void gtodo_set_hide_done(gboolean hide_it)
{
- /* settings.hide_done = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM (gtk_item_factory_get_widget(mw.item_factory, N_("/View/Todo List/Hide Completed Items"))));*/
+ GSettings* gsettings = g_settings_new (GSETTINGS_SCHEMA);
settings.hide_done = hide_it;
- anjuta_preferences_set_bool(preferences, "gtodo-hide-done", settings.hide_done);
+ g_settings_set_boolean (gsettings, PREF_HIDE_DONE, settings.hide_done);
+ g_object_unref (gsettings);
}
void gtodo_set_hide_nodate(gboolean hide_it)
{
+ GSettings* gsettings = g_settings_new (GSETTINGS_SCHEMA);
settings.hide_nodate = hide_it;
- anjuta_preferences_set_bool(preferences, "gtodo-hide-nodate", settings.hide_nodate);
+ g_settings_set_boolean (gsettings, PREF_HIDE_NODATE, settings.hide_done);
+ g_object_unref (gsettings);
}
void gtodo_set_hide_due(gboolean hide_it)
{
+ GSettings* gsettings = g_settings_new (GSETTINGS_SCHEMA);
settings.hide_due = hide_it;
- anjuta_preferences_set_bool(preferences, "gtodo-hide-due", settings.hide_due);
+ g_settings_set_boolean (gsettings, PREF_HIDE_NODATE, settings.hide_due);
+ g_object_unref (gsettings);
}
gboolean gtodo_get_hide_done()
@@ -312,15 +301,19 @@ gboolean gtodo_get_hide_due()
void gtodo_set_sorting_order (gboolean ascending_sort)
{
+ GSettings* gsettings = g_settings_new (GSETTINGS_SCHEMA);
settings.sortorder = ascending_sort;
- anjuta_preferences_set_int(preferences, "gtodo-sort-order",settings.sortorder);
+ g_settings_set_int (gsettings, PREF_SORT_ORDER, settings.sortorder);
+ g_object_unref (gsettings);
gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE (mw.sortmodel),0, settings.sortorder);
}
void gtodo_set_sorting_type (int sorting_type)
{
+ GSettings* gsettings = g_settings_new (GSETTINGS_SCHEMA);
settings.sorttype = sorting_type;
- anjuta_preferences_set_int(preferences, "gtodo-sort-type",sorting_type);
+ g_settings_set_int (gsettings, PREF_SORT_TYPE, settings.sorttype);
+ g_object_unref (gsettings);
gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE (gtk_tree_view_get_model(GTK_TREE_VIEW(mw.treeview))),0, settings.sortorder);
category_changed();
}
diff --git a/plugins/gtodo/list_tooltip.c b/plugins/gtodo/list_tooltip.c
index 8dfe20d..56de531 100644
--- a/plugins/gtodo/list_tooltip.c
+++ b/plugins/gtodo/list_tooltip.c
@@ -181,60 +181,3 @@ gboolean mw_tooltip_timeout(GtkWidget *tv)
return FALSE;
}
-
-gboolean mw_motion_cb (GtkWidget *tv, GdkEventMotion *event, gpointer null)
-{
- GtkTreePath *path;
- if(!anjuta_preferences_get_bool(preferences, "gtodo-show-tooltip")) return FALSE;
-
- if(rect.y == 0 && rect.height == 0 && gtodo_timeout)
- {
- g_source_remove(gtodo_timeout);
- gtodo_timeout = 0;
- if (tipwindow) {
- gtk_widget_destroy(tipwindow);
- tipwindow = NULL;
- }
- return FALSE;
-
- }
- if (gtodo_timeout) {
- if (((int)event->y > rect.y) && (((int)event->y - rect.height) < rect.y))
- return FALSE;
-
- if(event->y == 0)
- {
- g_source_remove(gtodo_timeout);
- return FALSE;
-
- }
- /* We've left the cell. Remove the timeout and create a new one below */
- if (tipwindow) {
- gtk_widget_destroy(tipwindow);
- tipwindow = NULL;
- }
-
- g_source_remove(gtodo_timeout);
- }
-
- if(gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW(tv), event->x, event->y, &path, NULL, NULL, NULL))
- {
- gtk_tree_view_get_cell_area(GTK_TREE_VIEW(tv), path, NULL, &rect);
- gtk_tree_path_free(path);
- if(rect.y != 0 && rect.height != 0) gtodo_timeout = g_timeout_add(500, (GSourceFunc)mw_tooltip_timeout, tv);
- }
- return FALSE;
-}
-
-void mw_leave_cb (GtkWidget *w, GdkEventCrossing *e, gpointer n)
-{
- if (gtodo_timeout) {
- g_source_remove(gtodo_timeout);
- gtodo_timeout = 0;
- }
- if (tipwindow) {
- gtk_widget_destroy(tipwindow);
- g_object_unref(layout);
- tipwindow = NULL;
- }
-}
diff --git a/plugins/gtodo/main.h b/plugins/gtodo/main.h
index 046064d..58e5c12 100644
--- a/plugins/gtodo/main.h
+++ b/plugins/gtodo/main.h
@@ -136,7 +136,7 @@ void set_sorting_menu_item();
void windows_moved(GtkWidget *window);
int check_for_notification_event(void);
-void pref_set_notifications(AnjutaPreferences *client);
+void pref_set_notifications(GSettings *gsettings);
void export_gui(void);
void open_playlist(void);
diff --git a/plugins/gtodo/preferences.c b/plugins/gtodo/preferences.c
index b6421c7..fda8750 100644
--- a/plugins/gtodo/preferences.c
+++ b/plugins/gtodo/preferences.c
@@ -67,7 +67,11 @@ void preferences_remove_signals()
g_signal_handlers_disconnect_by_func(G_OBJECT(cb),
G_CALLBACK(preferences_cb_toggle_show_notification), NULL);
}
-
+
+#define GSETTINGS_SCHEMA "org.gnome.anjuta.gtodo"
+#define PREF_SHOW_DUE_COLUMN "gtodo-show-due-column"
+#define PREF_SHOW_CATEGORY_COLUMN "gtodo-show-category-column"
+
GtkWidget *preferences_widget()
{
GtkWidget *vbox, *vbox2;
@@ -77,6 +81,7 @@ GtkWidget *preferences_widget()
gchar *tmp;
notebook = gtk_notebook_new();
+ GSettings* settings = g_settings_new (GSETTINGS_SCHEMA);
/********* FIRST TAB ***************/
vbox2 = gtk_vbox_new(FALSE, 0);
@@ -89,28 +94,21 @@ GtkWidget *preferences_widget()
gtk_box_pack_start(GTK_BOX(vbox),cb_show_date, FALSE, TRUE, 0);
/* set it to current value and add signal handler */
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cb_show_date),
- anjuta_preferences_get_bool(preferences, "gtodo-show-due-column"));
+ g_settings_set_boolean(gsettings, PREFS_SHOW_DUE_COLUMN));
g_signal_connect(G_OBJECT(cb_show_date), "toggled", G_CALLBACK(preferences_cb_show_date), NULL);
cb = gtk_check_button_new_with_label(_("Show category column"));
gtk_box_pack_start(GTK_BOX(vbox),cb, FALSE, TRUE, 0);
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cb), anjuta_preferences_get_bool(preferences, "gtodo-show-category-column"));
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cb),
+ g_settings_get_boolean (gsettings, PREF_SHOW_DUE_COLUMN));
g_signal_connect(G_OBJECT(cb), "toggled", G_CALLBACK(preferences_cb_toggle_show_category_column), NULL);
cb = gtk_check_button_new_with_label(_("Show priority column"));
gtk_box_pack_start(GTK_BOX(vbox),cb, FALSE, TRUE, 0);
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cb), anjuta_preferences_get_bool(preferences, "gtodo-show-priority-column"));
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cb), g_settings_get_boolean (gsettings, PREF_SHOW_CATEGORY_COLUMN));
g_signal_connect(G_OBJECT(cb), "toggled", G_CALLBACK(preferences_cb_toggle_show_priority_column), NULL);
- cb_list_tooltip = gtk_check_button_new_with_label(_("Tooltips in list"));
- gtk_box_pack_start(GTK_BOX(vbox),cb_list_tooltip, FALSE, TRUE, 0);
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(cb_list_tooltip),
- anjuta_preferences_get_bool(preferences, "gtodo-show-tooltip"));
-
- g_signal_connect(G_OBJECT(cb_list_tooltip), "toggled", G_CALLBACK(preferences_cb_do_tooltip), NULL);
-
-
/** add the page **/
gtk_container_set_border_width(GTK_CONTAINER(vbox), 12);
@@ -226,6 +224,7 @@ GtkWidget *preferences_widget()
g_signal_connect(G_OBJECT(cb), "toggled", G_CALLBACK(preferences_cb_toggle_show_notification), NULL);
gtk_widget_show_all (notebook);
+ g_object_unref (gsettings);
return notebook;
}
@@ -287,20 +286,6 @@ static void preferences_cb_show_date(GtkWidget *chbox)
}
}
-static void preferences_cb_do_tooltip(GtkWidget *chbox)
-{
- anjuta_preferences_set_bool(preferences, "gtodo-show-tooltip", gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(chbox)));
- if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(chbox)))
-
- {
- gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(mw.treeview), FALSE);
- }
- else
- {
- gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(mw.treeview), TRUE);
- }
-}
-
static void preferences_cb_auto_purge(GtkWidget *cb, GtkWidget *hbox)
{
anjuta_preferences_set_bool(preferences, "gtodo-auto-purge", gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cb)));
@@ -311,7 +296,7 @@ static void preferences_cb_auto_purge(GtkWidget *cb, GtkWidget *hbox)
}
-static void pref_changed_show_tooltip(AnjutaPreferences *preferences, const char *key, gpointer data)
+static void pref_changed_show_headers(AnjutaPreferences *preferences, const char *key, gpointer data)
{
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(mw.treeview),
!anjuta_preferences_get_bool (preferences, key));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]