[gnome-control-center] keyboard: deprecation fix



commit 7bd8a4e50c6c21a11a3cb9ef9d52043cb86d38bf
Author: Nishal Kulkarni <kulknishu gmail com>
Date:   Tue Aug 3 09:38:30 2021 +0530

    keyboard: deprecation fix
    
    Change `g_binding_get_source` to `g_binding_dup_source` in keyboard

 panels/keyboard/cc-keyboard-shortcut-row.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-shortcut-row.c b/panels/keyboard/cc-keyboard-shortcut-row.c
index 0bf336947..36515a591 100644
--- a/panels/keyboard/cc-keyboard-shortcut-row.c
+++ b/panels/keyboard/cc-keyboard-shortcut-row.c
@@ -76,11 +76,11 @@ transform_binding_to_accel (GBinding     *binding,
                             GValue       *to_value,
                             gpointer      user_data)
 {
-  CcKeyboardItem *item;
+  g_autoptr(CcKeyboardItem) item = NULL;
   CcKeyCombo combo;
   gchar *accelerator;
 
-  item = CC_KEYBOARD_ITEM (g_binding_get_source (binding));
+  item = CC_KEYBOARD_ITEM (g_binding_dup_source (binding));
   combo = cc_keyboard_item_get_primary_combo (item);
 
   /* Embolden the label when the shortcut is modified */


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