Dominique Leuenberger
d6652971ba
Fix build OBS-URL: https://build.opensuse.org/request/show/72287 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gnote?expand=0&rev=9
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
commit 49cefcc356732b25f34e8b1badabbab079c8377b
|
|
Author: Vincent Untz <vuntz@gnome.org>
|
|
Date: Tue May 31 15:45:26 2011 +0200
|
|
|
|
Stop using some deprecated GdkDrawable API
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=651551
|
|
|
|
diff --git a/libtomboy/tomboyutil.c b/libtomboy/tomboyutil.c
|
|
index 77e71f9..661cb9f 100644
|
|
--- a/libtomboy/tomboyutil.c
|
|
+++ b/libtomboy/tomboyutil.c
|
|
@@ -73,7 +73,7 @@ tomboy_window_move_to_current_workspace (GtkWindow *window)
|
|
{
|
|
GdkWindow *gdkwin = gtk_widget_get_window(GTK_WIDGET (window));
|
|
GdkWindow *rootwin =
|
|
- gdk_screen_get_root_window (gdk_drawable_get_screen (gdkwin));
|
|
+ gdk_screen_get_root_window (gdk_window_get_screen (gdkwin));
|
|
|
|
GdkAtom current_desktop =
|
|
gdk_atom_intern ("_NET_CURRENT_DESKTOP", FALSE);
|
|
@@ -107,7 +107,7 @@ tomboy_window_move_to_current_workspace (GtkWindow *window)
|
|
xev.xclient.window = GDK_WINDOW_XID (gdkwin);
|
|
xev.xclient.message_type =
|
|
gdk_x11_atom_to_xatom_for_display(
|
|
- gdk_drawable_get_display (gdkwin),
|
|
+ gdk_window_get_display (gdkwin),
|
|
wm_desktop);
|
|
xev.xclient.format = 32;
|
|
xev.xclient.data.l[0] = workspace;
|