[gnome-control-center] keyboard: Add proper casts to silence compiler warnings



commit 8ea40157b6db48052182b00f98623e06b1779466
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Feb 16 14:25:40 2015 +0100

    keyboard: Add proper casts to silence compiler warnings

 panels/keyboard/keyboard-shortcuts.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/keyboard/keyboard-shortcuts.c b/panels/keyboard/keyboard-shortcuts.c
index 1069310..d3ad46e 100644
--- a/panels/keyboard/keyboard-shortcuts.c
+++ b/panels/keyboard/keyboard-shortcuts.c
@@ -1735,8 +1735,8 @@ shortcut_entry_changed (GtkEntry *entry,
   guint16 name_length;
   guint16 command_length;
 
-  name_length = gtk_entry_get_text_length (custom_shortcut_name_entry);
-  command_length = gtk_entry_get_text_length (custom_shortcut_command_entry);
+  name_length = gtk_entry_get_text_length (GTK_ENTRY (custom_shortcut_name_entry));
+  command_length = gtk_entry_get_text_length (GTK_ENTRY (custom_shortcut_command_entry));
 
   gtk_widget_set_sensitive (custom_shortcut_ok_button,
                             name_length > 0 && command_length > 0);


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