[gnote] Use gtk_widget_get_window accessor
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Use gtk_widget_get_window accessor
- Date: Thu, 14 Apr 2011 19:45:57 +0000 (UTC)
commit 5a260a3a55930d3c38e3e88c67e40a5a60e17821
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date: Fri Mar 4 19:46:53 2011 +0200
Use gtk_widget_get_window accessor
Direct access to GtkWidget's window member will not be available in GTK 3.
libtomboy/tomboyutil.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libtomboy/tomboyutil.c b/libtomboy/tomboyutil.c
index 4cbe5e6..77e71f9 100644
--- a/libtomboy/tomboyutil.c
+++ b/libtomboy/tomboyutil.c
@@ -44,7 +44,7 @@
gint
tomboy_window_get_workspace (GtkWindow *window)
{
- GdkWindow *gdkwin = GTK_WIDGET (window)->window;
+ GdkWindow *gdkwin = gtk_widget_get_window(GTK_WIDGET (window));
GdkAtom wm_desktop = gdk_atom_intern ("_NET_WM_DESKTOP", FALSE);
GdkAtom out_type;
gint out_format, out_length;
@@ -71,7 +71,7 @@ tomboy_window_get_workspace (GtkWindow *window)
void
tomboy_window_move_to_current_workspace (GtkWindow *window)
{
- GdkWindow *gdkwin = GTK_WIDGET (window)->window;
+ GdkWindow *gdkwin = gtk_widget_get_window(GTK_WIDGET (window));
GdkWindow *rootwin =
gdk_screen_get_root_window (gdk_drawable_get_screen (gdkwin));
@@ -144,11 +144,11 @@ tomboy_window_override_user_time (GtkWindow *window)
* NOTE: Last resort for D-BUS or other non-interactive
* openings. Causes roundtrip to server. Lame.
*/
- ev_time = gdk_x11_get_server_time (GTK_WIDGET(window)->window);
+ ev_time = gdk_x11_get_server_time (gtk_widget_get_window(GTK_WIDGET(window)));
}
TRACE (g_print("Setting _NET_WM_USER_TIME to: %d\n", ev_time));
- gdk_x11_window_set_user_time (GTK_WIDGET(window)->window, ev_time);
+ gdk_x11_window_set_user_time (gtk_widget_get_window(GTK_WIDGET(window)), ev_time);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]