[libgnomekbd] Remove GDK_DISPLAY() usage
- From: Sergey V. Udaltsov <svu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomekbd] Remove GDK_DISPLAY() usage
- Date: Fri, 1 Oct 2010 20:07:30 +0000 (UTC)
commit 8b62e545aa61111d8dd522ff62445b2827da3f25
Author: William Jon McCann <jmccann redhat com>
Date: Wed Sep 29 20:50:44 2010 -0400
Remove GDK_DISPLAY() usage
https://bugzilla.gnome.org/show_bug.cgi?id=630974
capplet/gkbd-indicator-plugins-capplet.c | 2 +-
libgnomekbd/gkbd-indicator.c | 2 +-
libgnomekbd/gkbd-keyboard-drawing.c | 2 +-
libgnomekbd/gkbd-status.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/capplet/gkbd-indicator-plugins-capplet.c b/capplet/gkbd-indicator-plugins-capplet.c
index c232c98..752d28c 100644
--- a/capplet/gkbd-indicator-plugins-capplet.c
+++ b/capplet/gkbd-indicator-plugins-capplet.c
@@ -376,7 +376,7 @@ main (int argc, char **argv)
}
gconf_error = NULL;
/*GkbdIndicatorInstallGlibLogAppender( ); */
- gipc.engine = xkl_engine_get_instance (GDK_DISPLAY ());
+ gipc.engine = xkl_engine_get_instance (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
gipc.config_registry =
xkl_config_registry_get_instance (gipc.engine);
diff --git a/libgnomekbd/gkbd-indicator.c b/libgnomekbd/gkbd-indicator.c
index cb2ed56..4fd42d8 100644
--- a/libgnomekbd/gkbd-indicator.c
+++ b/libgnomekbd/gkbd-indicator.c
@@ -817,7 +817,7 @@ gkbd_indicator_global_init (void)
GConfClient *gconf_client;
XklConfigRec *xklrec = xkl_config_rec_new ();
- globals.engine = xkl_engine_get_instance (GDK_DISPLAY ());
+ globals.engine = xkl_engine_get_instance (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
if (globals.engine == NULL) {
xkl_debug (0, "Libxklavier initialization error");
return;
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index 7e3c3e8..e31dc94 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -2524,7 +2524,7 @@ gkbd_keyboard_drawing_new_dialog (gint group, gchar * group_name)
GdkRectangle *rect;
GError *error = NULL;
char title[128] = "";
- XklEngine *engine = xkl_engine_get_instance (GDK_DISPLAY ());
+ XklEngine *engine = xkl_engine_get_instance (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
builder = gtk_builder_new ();
gtk_builder_add_from_file (builder, UIDIR "/show-layout.ui",
diff --git a/libgnomekbd/gkbd-status.c b/libgnomekbd/gkbd-status.c
index 83a5d47..c6ac2d6 100644
--- a/libgnomekbd/gkbd-status.c
+++ b/libgnomekbd/gkbd-status.c
@@ -771,7 +771,7 @@ gkbd_status_global_init (void)
GConfClient *gconf_client;
XklConfigRec *xklrec = xkl_config_rec_new ();
- globals.engine = xkl_engine_get_instance (GDK_DISPLAY ());
+ globals.engine = xkl_engine_get_instance (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
if (globals.engine == NULL) {
xkl_debug (0, "Libxklavier initialization error");
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]