[Xfce4-commits] <xfce4-session:master> Fix changing the restart style (bug #5768).

Nick Schermer noreply at xfce.org
Sun Feb 7 13:56:03 CET 2010


Updating branch refs/heads/master
         to 9716629ca0e889c2ffaad60eb96b75bac8a5bb2c (commit)
       from cf99fad929a1b92151869a044fc0bce0c7c1c7f6 (commit)

commit 9716629ca0e889c2ffaad60eb96b75bac8a5bb2c
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Feb 7 13:53:09 2010 +0100

    Fix changing the restart style (bug #5768).
    
    Compare the translated string and set the new
    value in the model after the changes, because gtk
    does not do that on it's own.

 settings/session-editor.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/settings/session-editor.c b/settings/session-editor.c
index 1bd324f..226f093 100644
--- a/settings/session-editor.c
+++ b/settings/session-editor.c
@@ -525,9 +525,8 @@ restart_style_hint_changed(GtkCellRenderer *render,
                            COL_RESTART_STYLE, &old_hint,
                            -1);
         hint = old_hint;
-
         for(i = 0; restart_styles[i]; ++i) {
-            if(!g_utf8_collate(new_text, restart_styles[i])) {
+            if(!g_utf8_collate(new_text, _(restart_styles[i]))) {
                 hint = i;
                 break;
             }
@@ -549,6 +548,9 @@ restart_style_hint_changed(GtkCellRenderer *render,
 
             g_value_unset(&val);
             g_hash_table_destroy(properties);
+
+            gtk_list_store_set (GTK_LIST_STORE (model), &iter,
+                                COL_RESTART_STYLE_STR, new_text, -1);
         }
 
         g_object_unref(proxy);



More information about the Xfce4-commits mailing list