[gnome-settings-daemon] keyboard: Fix deprecated use of GDK_DISPLAY
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] keyboard: Fix deprecated use of GDK_DISPLAY
- Date: Mon, 20 Sep 2010 17:47:11 +0000 (UTC)
commit c4233a9e8a14cdbec8ceca989980f2a990cfc87a
Author: Bastien Nocera <hadess hadess net>
Date: Mon Sep 20 18:44:45 2010 +0100
keyboard: Fix deprecated use of GDK_DISPLAY
plugins/keyboard/gsd-keyboard-xkb.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-xkb.c b/plugins/keyboard/gsd-keyboard-xkb.c
index 0026c93..9d16f5f 100644
--- a/plugins/keyboard/gsd-keyboard-xkb.c
+++ b/plugins/keyboard/gsd-keyboard-xkb.c
@@ -116,8 +116,8 @@ gsd_keyboard_log_appender (const char file[],
static void
activation_error (void)
{
- char const *vendor = ServerVendor (GDK_DISPLAY ());
- int release = VendorRelease (GDK_DISPLAY ());
+ char const *vendor = ServerVendor (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
+ int release = VendorRelease (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
GtkWidget *dialog;
gboolean badXFree430Release;
@@ -212,7 +212,7 @@ static void
popup_menu_show_layout ()
{
GtkWidget *dialog;
- XklEngine *engine = xkl_engine_get_instance (GDK_DISPLAY ());
+ XklEngine *engine = xkl_engine_get_instance (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
XklState *xkl_state = xkl_engine_get_current_state (engine);
gpointer p = g_hash_table_lookup (preview_dialogs,
GINT_TO_POINTER
@@ -737,7 +737,7 @@ gsd_keyboard_update_indicator_icons ()
{
Bool state;
int new_state, i;
- Display *display = GDK_DISPLAY ();
+ Display *display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
XkbGetNamedIndicator (display, caps_lock, NULL, &state,
NULL, NULL);
new_state = state ? 1 : 0;
@@ -780,7 +780,7 @@ gsd_keyboard_xkb_init (GConfClient * client,
GsdKeyboardManager * kbd_manager)
{
int i;
- Display *display = GDK_DISPLAY ();
+ Display *display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
gnome_settings_profile_start (NULL);
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]