[Goodies-commits] r4698 - in xfce4-places-plugin/trunk: . panel-plugin
Diego Ongaro
ongardie at xfce.org
Thu May 1 19:51:18 CEST 2008
Author: ongardie
Date: 2008-05-01 17:51:18 +0000 (Thu, 01 May 2008)
New Revision: 4698
Modified:
xfce4-places-plugin/trunk/ChangeLog
xfce4-places-plugin/trunk/panel-plugin/cfg.c
Log:
2008-05-01 Diego Ongaro <ongardie at gmail.com>
* cfg.c: Make label insensitive when not shown
Modified: xfce4-places-plugin/trunk/ChangeLog
===================================================================
--- xfce4-places-plugin/trunk/ChangeLog 2008-05-01 17:35:57 UTC (rev 4697)
+++ xfce4-places-plugin/trunk/ChangeLog 2008-05-01 17:51:18 UTC (rev 4698)
@@ -1,5 +1,6 @@
2008-05-01 Diego Ongaro <ongardie at gmail.com>
+ * cfg.c: Make label insensitive when not shown
* view.c: Disable the Recent Docs menu item if there are none.
2008-04-06 Diego Ongaro <ongardie at gmail.com>
Modified: xfce4-places-plugin/trunk/panel-plugin/cfg.c
===================================================================
--- xfce4-places-plugin/trunk/panel-plugin/cfg.c 2008-05-01 17:35:57 UTC (rev 4697)
+++ xfce4-places-plugin/trunk/panel-plugin/cfg.c 2008-05-01 17:51:18 UTC (rev 4698)
@@ -169,6 +169,7 @@
static void
pcfg_button_show_cb(GtkComboBox *combo, PlacesCfg *cfg)
{
+ GtkWidget *transient;
gint option = gtk_combo_box_get_active(combo);
g_assert(cfg != NULL);
@@ -177,6 +178,10 @@
cfg->show_button_icon = (option == 0 || option == 2);
cfg->show_button_label = (option == 1 || option == 2);
+ transient = g_object_get_data(G_OBJECT(combo), "cfg_transient");
+ if(transient != NULL)
+ gtk_widget_set_sensitive(transient, cfg->show_button_label);
+
places_view_cfg_iface_update_button(cfg->view_iface);
}
@@ -380,6 +385,10 @@
/* BUTTON: Label text entry */
tmp_box = gtk_hbox_new(FALSE, 15);
+
+ gtk_widget_set_sensitive(tmp_box, cfg->show_button_label);
+ g_object_set_data(G_OBJECT(tmp_widget), "cfg_transient", tmp_box);
+
gtk_widget_show(tmp_box);
gtk_box_pack_start(GTK_BOX(vbox_button), tmp_box, FALSE, FALSE, 0);
More information about the Goodies-commits
mailing list