summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes_applet_callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'stickynotes/stickynotes_applet_callbacks.c')
-rw-r--r--stickynotes/stickynotes_applet_callbacks.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c
index 980b9a10..038509eb 100644
--- a/stickynotes/stickynotes_applet_callbacks.c
+++ b/stickynotes/stickynotes_applet_callbacks.c
@@ -27,6 +27,7 @@
#endif
#include <X11/Xatom.h>
#include <gdk/gdkx.h>
+#include <libmate-desktop/mate-aboutdialog.h>
static gboolean get_desktop_window (Window *window)
{
@@ -167,14 +168,9 @@ void install_check_click_on_desktop (void)
return;
}
-#if GTK_CHECK_VERSION (3, 0, 0)
/* Access the desktop window. desktop_window is the root window for the
* default screen, so we know using gdk_display_get_default() is correct. */
window = gdk_x11_window_foreign_new_for_display (gdk_display_get_default (), desktop_window);
-#else
- /* Access the desktop window */
- window = gdk_window_foreign_new (desktop_window);
-#endif
/* It may contain an atom to tell us which other window to monitor */
user_time_window = gdk_x11_get_xatom_by_name ("_NET_WM_USER_TIME_WINDOW");
@@ -202,11 +198,7 @@ void install_check_click_on_desktop (void)
{
/* We have another window to monitor */
desktop_window = *data;
-#if GTK_CHECK_VERSION (3, 0, 0)
window = gdk_x11_window_foreign_new_for_display (gdk_window_get_display (window), desktop_window);
-#else
- window = gdk_window_foreign_new (desktop_window);
-#endif
}
}
}
@@ -432,7 +424,7 @@ menu_about_cb (GtkAction *action,
NULL
};
- gtk_show_about_dialog (NULL,
+ mate_show_about_dialog (NULL,
"version", VERSION,
"copyright", "\xC2\xA9 2002-2003 Loban A Rahman, "
"\xC2\xA9 2005 Davyd Madeley",