[gnome-control-center] Using G_CALLBACK macro instead of casting



commit af45ac562be048d155f2c05bc466a08d450835dd
Author: Sergey V. Udaltsov <svu gnome org>
Date:   Sat Oct 9 22:28:52 2010 +0100

    Using G_CALLBACK macro instead of casting

 panels/keyboard/gnome-keyboard-properties-xkblt.c |    2 +-
 panels/keyboard/gnome-keyboard-properties-xkbot.c |    7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/panels/keyboard/gnome-keyboard-properties-xkblt.c b/panels/keyboard/gnome-keyboard-properties-xkblt.c
index d1591d2..dc9baa3 100644
--- a/panels/keyboard/gnome-keyboard-properties-xkblt.c
+++ b/panels/keyboard/gnome-keyboard-properties-xkblt.c
@@ -437,5 +437,5 @@ void
 xkb_layouts_register_conf_listener (GtkBuilder * dialog)
 {
 	g_signal_connect (xkb_keyboard_settings, "changed",
-			  (GCallback) xkb_layouts_update_list, dialog);
+			  G_CALLBACK (xkb_layouts_update_list), dialog);
 }
diff --git a/panels/keyboard/gnome-keyboard-properties-xkbot.c b/panels/keyboard/gnome-keyboard-properties-xkbot.c
index 8c09433..cd7a02f 100644
--- a/panels/keyboard/gnome-keyboard-properties-xkbot.c
+++ b/panels/keyboard/gnome-keyboard-properties-xkbot.c
@@ -124,7 +124,8 @@ xkb_options_select (gchar * optionname)
 	}
 
 	if (!already_selected) {
-		options_list = gkbd_strv_append (options_list, g_strdup (optionname));
+		options_list =
+		    gkbd_strv_append (options_list, g_strdup (optionname));
 		xkb_options_set_selected_list (options_list);
 	}
 
@@ -141,7 +142,7 @@ xkb_options_deselect (gchar * optionname)
 		while (*option != NULL) {
 			gchar *id = *option;
 			if (!strcmp (id, optionname)) {
-				gkbd_strv_behead(option);
+				gkbd_strv_behead (option);
 			} else
 				option++;
 		}
@@ -506,5 +507,5 @@ void
 xkb_options_register_conf_listener (GtkBuilder * dialog)
 {
 	g_signal_connect (xkb_keyboard_settings, "changed",
-			  (GCallback) xkb_options_update, dialog);
+			  G_CALLBACK (xkb_options_update), dialog);
 }



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