summaryrefslogtreecommitdiff
path: root/src/gs-job.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-09 12:08:18 +0200
committerinfirit <[email protected]>2015-07-09 12:15:32 +0200
commit72dd61aa3a3a98bf38c2cc3aa7e36f99b620be24 (patch)
tree4e76ed8e327a98bb4a89876a5747b1ea375fda07 /src/gs-job.c
parenta3c426e1e81dc56f4fdd56f8c736125798fec26b (diff)
downloadmate-screensaver-72dd61aa3a3a98bf38c2cc3aa7e36f99b620be24.tar.bz2
mate-screensaver-72dd61aa3a3a98bf38c2cc3aa7e36f99b620be24.tar.xz
Use accessor functions instead of direct access
Make Gtk2 build with GSEAL_ENABLE And cut down on ifdef hell.
Diffstat (limited to 'src/gs-job.c')
-rw-r--r--src/gs-job.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gs-job.c b/src/gs-job.c
index af77442..4296f64 100644
--- a/src/gs-job.c
+++ b/src/gs-job.c
@@ -80,11 +80,7 @@ widget_get_id_string (GtkWidget *widget)
g_return_val_if_fail (widget != NULL, NULL);
id = g_strdup_printf ("0x%X",
-#if GTK_CHECK_VERSION (3, 0, 0)
(guint32)GDK_WINDOW_XID (gtk_widget_get_window (widget)));
-#else
- (guint32)GDK_WINDOW_XID (widget->window));
-#endif
return id;
}