[Xfce4-commits] <xfwm4:master> Update treeview when clearing a shortcut.

Jérôme Guelfucci noreply at xfce.org
Sun Dec 30 15:46:03 CET 2012


Updating branch refs/heads/master
         to 556ffdb3fd2e6e414de8cb347f2c9d8251aebf9d (commit)
       from e7703727fbd5d91d6fd9de0a1a64bfef86eea296 (commit)

commit 556ffdb3fd2e6e414de8cb347f2c9d8251aebf9d
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Wed Dec 19 22:59:04 2012 +0100

    Update treeview when clearing a shortcut.

 settings-dialogs/xfwm4-settings.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/settings-dialogs/xfwm4-settings.c b/settings-dialogs/xfwm4-settings.c
index 281a022..6746d27 100644
--- a/settings-dialogs/xfwm4-settings.c
+++ b/settings-dialogs/xfwm4-settings.c
@@ -1731,6 +1731,9 @@ xfwm_settings_shortcut_added (XfceShortcutsProvider *provider,
                               XfwmSettings          *settings)
 {
   g_return_if_fail (XFWM_IS_SETTINGS (settings));
+
+  DBG ("Shortcut added signal: %s", shortcut);
+
   xfwm_settings_reload_shortcuts (settings);
 }
 
@@ -1742,6 +1745,9 @@ xfwm_settings_shortcut_removed (XfceShortcutsProvider *provider,
                                 XfwmSettings          *settings)
 {
   g_return_if_fail (XFWM_IS_SETTINGS (settings));
+
+  DBG ("Shortcut removed signal: %s", shortcut);
+
   xfwm_settings_reload_shortcuts (settings);
 }
 
@@ -1792,6 +1798,10 @@ xfwm_settings_shortcut_clear_clicked (GtkButton    *button,
               /* Remove keyboard shortcut via xfconf */
               xfce_shortcuts_provider_reset_shortcut (settings->priv->provider, shortcut);
 
+              gtk_list_store_set (GTK_LIST_STORE (model), &tree_iter,
+                                  SHORTCUTS_SHORTCUT_COLUMN, NULL,
+                                  SHORTCUTS_SHORTCUT_LABEL_COLUMN, NULL, -1);
+
               /* Free shortcut string */
               g_free (shortcut);
             }


More information about the Xfce4-commits mailing list