[Xfce4-commits] <xfce4-settings:jeromeg/settings-editor> Don't let the user change the type of a property.

Jérôme Guelfucci noreply at xfce.org
Wed Jan 13 00:06:03 CET 2010


Updating branch refs/heads/jeromeg/settings-editor
         to 9114e1d7a32108a0ad705b703dcb62e3b4d08186 (commit)
       from da0302b191caa2313ff8641d30321cc2298aa28f (commit)

commit 9114e1d7a32108a0ad705b703dcb62e3b4d08186
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