[gnome-control-center] keyboard: Don't create shortcuts editor twice



commit 84d527645b5ff0a5c42db438634379b6f6ff027f
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jun 22 17:21:19 2017 +0200

    keyboard: Don't create shortcuts editor twice
    
    We are accidentally creating two editors, leaking the first instance ...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784391

 panels/keyboard/cc-keyboard-panel.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-panel.c b/panels/keyboard/cc-keyboard-panel.c
index 82afdfb..99e5e95 100644
--- a/panels/keyboard/cc-keyboard-panel.c
+++ b/panels/keyboard/cc-keyboard-panel.c
@@ -718,9 +718,6 @@ cc_keyboard_panel_init (CcKeyboardPanel *self)
   /* Use a sizegroup to make the accelerator labels the same width */
   self->accelerator_sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
 
-  /* Shortcut editor dialog */
-  self->shortcut_editor = cc_keyboard_shortcut_editor_new (self->manager);
-
   g_signal_connect_swapped (self->manager,
                             "shortcut-added",
                             G_CALLBACK (add_item),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]