Mercurial > pidgin.yaz
changeset 17153:8504e859c782
Remove the "GtkTreeView Indent Expanders" boolean preference, because the
boolean preferences were handled in a somewhat confusing manner and this
preference didn't do what it was put into the plugin to fix anymore. (That is
the buddy list no longer uses the treeview expanders so this doesn't save any
space in the buddy list window anymore.)
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Sat, 19 May 2007 02:41:10 +0000 |
parents | c4237e963099 |
children | 2e9150f55ff0 |
files | pidgin/plugins/pidginrc.c |
diffstat | 1 files changed, 12 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/plugins/pidginrc.c Sat May 19 02:21:31 2007 +0000 +++ b/pidgin/plugins/pidginrc.c Sat May 19 02:41:10 2007 +0000 @@ -81,16 +81,15 @@ }; static GtkWidget *font_widgets[G_N_ELEMENTS(font_prefs)]; +/* static const char *widget_bool_prefs[] = { - "/plugins/gtk/purplerc/bool/GtkTreeView::indent_expanders", }; static const char *widget_bool_prefs_set[] = { - "/plugins/gtk/purplerc/set/bool/GtkTreeView::indent_expanders", }; static const char *widget_bool_names[] = { - N_("GtkTreeView Indent Expanders"), }; static GtkWidget *widget_bool_widgets[G_N_ELEMENTS(widget_bool_prefs)]; +*/ static void purplerc_make_changes() @@ -143,6 +142,7 @@ } } + /* for (i = 0; i < G_N_ELEMENTS(widget_bool_prefs); i++) { if (purple_prefs_get_bool(widget_bool_prefs_set[i])) { prefbase = g_path_get_basename(widget_bool_prefs[i]); @@ -152,6 +152,7 @@ g_free(prefbase); } } + */ g_string_append(style_string, "}"); g_string_append(style_string, "widget_class \"*\" style \"purplerc_style\"\n"); @@ -236,6 +237,7 @@ } } + /* for (i = 0; i < G_N_ELEMENTS(widget_bool_prefs); i++) { if (purple_prefs_get_bool(widget_bool_prefs_set[i])) { prefbase = g_path_get_basename(widget_bool_prefs[i]); @@ -245,6 +247,7 @@ g_free(prefbase); } } + */ g_string_append(style_string, "}"); g_string_append(style_string, "widget_class \"*\" style \"purplerc_style\"\n"); @@ -486,6 +489,7 @@ g_signal_connect(G_OBJECT(check), "toggled", G_CALLBACK(pidgin_toggle_sensitive), widget); + /* for (i = 0; i < G_N_ELEMENTS(widget_bool_prefs); i++) { hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_CAT_SPACE); gtk_box_pack_start(GTK_BOX(frame), hbox, FALSE, FALSE, 0); @@ -495,15 +499,16 @@ gtk_size_group_add_widget(labelsg, check); widget_bool_widgets[i] = pidgin_prefs_checkbox("", widget_bool_prefs[i], hbox); - /* + * gtk_size_group_add_widget(widgetsb, widget_bool_widgets[i]); - */ + * gtk_widget_set_sensitive(widget_bool_widgets[i], purple_prefs_get_bool(widget_bool_prefs_set[i])); g_signal_connect(G_OBJECT(check), "toggled", G_CALLBACK(pidgin_toggle_sensitive), widget_bool_widgets[i]); } + */ frame = pidgin_make_frame(ret, _("Interface colors")); /* imhtml stuff */ @@ -677,12 +682,14 @@ purple_prefs_add_bool(font_prefs_set[i], FALSE); } + /* purple_prefs_add_none("/plugins/gtk/purplerc/bool"); purple_prefs_add_none("/plugins/gtk/purplerc/set/bool"); for (i = 0; i < G_N_ELEMENTS(widget_bool_prefs); i++) { purple_prefs_add_bool(widget_bool_prefs[i], TRUE); purple_prefs_add_bool(widget_bool_prefs_set[i], FALSE); } + */ } PURPLE_INIT_PLUGIN(purplerc, purplerc_init, purplerc_info)