[libgnomekbd] Changing casting GCallback to macro G_CALLBACK
- From: Sergey V. Udaltsov <svu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomekbd] Changing casting GCallback to macro G_CALLBACK
- Date: Sat, 9 Oct 2010 21:32:14 +0000 (UTC)
commit 825727e40ede79bf3c39ae5b637fcecc4c7da5df
Author: Sergey V. Udaltsov <svu gnome org>
Date: Sat Oct 9 22:31:40 2010 +0100
Changing casting GCallback to macro G_CALLBACK
libgnomekbd/gkbd-indicator.c | 10 ++++++----
libgnomekbd/gkbd-status.c | 10 ++++++----
2 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/libgnomekbd/gkbd-indicator.c b/libgnomekbd/gkbd-indicator.c
index 39b3818..b930c57 100644
--- a/libgnomekbd/gkbd-indicator.c
+++ b/libgnomekbd/gkbd-indicator.c
@@ -856,11 +856,13 @@ gkbd_indicator_global_init (void)
gkbd_indicator_plugin_manager_init_enabled_plugins
(&globals.plugin_manager, &globals.plugin_container,
globals.ind_cfg.enabled_plugins);
- gkbd_desktop_config_start_listen (&globals.cfg, (GCallback)
- gkbd_indicator_cfg_changed,
+ gkbd_desktop_config_start_listen (&globals.cfg,
+ G_CALLBACK
+ (gkbd_indicator_cfg_changed),
NULL);
- gkbd_indicator_config_start_listen (&globals.ind_cfg, (GCallback)
- gkbd_indicator_ind_cfg_changed,
+ gkbd_indicator_config_start_listen (&globals.ind_cfg,
+ G_CALLBACK
+ (gkbd_indicator_ind_cfg_changed),
NULL);
gkbd_indicator_start_listen ();
diff --git a/libgnomekbd/gkbd-status.c b/libgnomekbd/gkbd-status.c
index 3f3c9c8..0c05a70 100644
--- a/libgnomekbd/gkbd-status.c
+++ b/libgnomekbd/gkbd-status.c
@@ -813,10 +813,12 @@ gkbd_status_global_init (void)
(const gchar **) xklrec->variants);
g_object_unref (G_OBJECT (xklrec));
- gkbd_desktop_config_start_listen (&globals.cfg, (GCallback)
- gkbd_status_cfg_changed, NULL);
- gkbd_indicator_config_start_listen (&globals.ind_cfg, (GCallback)
- gkbd_status_ind_cfg_changed,
+ gkbd_desktop_config_start_listen (&globals.cfg,
+ G_CALLBACK
+ (gkbd_status_cfg_changed), NULL);
+ gkbd_indicator_config_start_listen (&globals.ind_cfg,
+ G_CALLBACK
+ (gkbd_status_ind_cfg_changed),
NULL);
gkbd_status_start_listen ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]