[Xfce4-commits] <xfce4-settings:master> Don't let the user change the type of a property.
Jérôme Guelfucci
noreply at xfce.org
Tue Jan 19 19:34:31 CET 2010
Updating branch refs/heads/master
to c17805bcde40baf2a54d91f57e949a54e15ba915 (commit)
from f00581fbc5545f68fa649779ef27cba402e70a5f (commit)
commit c17805bcde40baf2a54d91f57e949a54e15ba915
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Wed Jan 13 00:06:56 2010 +0100
Don't let the user change the type of a property.
Xfconf cache complains when the type of a property is changed, so
I guess this is not supported.
xfce4-settings-editor/main_window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/xfce4-settings-editor/main_window.c b/xfce4-settings-editor/main_window.c
index 05fcf70..8f3afc0 100644
--- a/xfce4-settings-editor/main_window.c
+++ b/xfce4-settings-editor/main_window.c
@@ -773,6 +773,8 @@ cb_property_edit_button_clicked (GtkButton *button, GtkBuilder *builder)
/* Set the correct properties in the ui */
gtk_entry_set_text (GTK_ENTRY(prop_name_entry), current_property);
+ gtk_widget_set_sensitive (GTK_WIDGET (prop_type_combo), FALSE);
+
if (xfconf_channel_get_property (current_channel, current_property, &value))
{
switch (G_VALUE_TYPE(&value))
More information about the Xfce4-commits
mailing list