summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes.c
diff options
context:
space:
mode:
Diffstat (limited to 'stickynotes/stickynotes.c')
-rw-r--r--stickynotes/stickynotes.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c
index d4e82ace..2a2cad17 100644
--- a/stickynotes/stickynotes.c
+++ b/stickynotes/stickynotes.c
@@ -54,12 +54,7 @@ set_icon_geometry (GdkWindow *window,
int height)
{
gulong data[4];
-#if GTK_CHECK_VERSION (3, 0, 0)
Display *dpy = gdk_x11_display_get_xdisplay (gdk_window_get_display (window));
-#else
- Display *dpy = gdk_x11_drawable_get_xdisplay (window);
-#endif
-
data[0] = x;
data[1] = y;
data[2] = width;
@@ -68,11 +63,7 @@ set_icon_geometry (GdkWindow *window,
XChangeProperty (dpy,
GDK_WINDOW_XID (window),
gdk_x11_get_xatom_by_name_for_display (
-#if GTK_CHECK_VERSION (3, 0, 0)
gdk_window_get_display (window),
-#else
- gdk_drawable_get_display (window),
-#endif
"_NET_WM_ICON_GEOMETRY"),
XA_CARDINAL, 32, PropModeReplace,
(guchar *)&data, 4);
@@ -838,11 +829,7 @@ stickynotes_save_now (void)
/* The XML file is $HOME/.config/mate/stickynotes-applet, most probably */
{
- #if GLIB_CHECK_VERSION(2, 6, 0)
gchar* file = g_build_filename(g_get_user_config_dir(), "mate", "stickynotes-applet.xml", NULL);
- #else // glib version < 2.6.0
- gchar* file = g_build_filename(g_get_home_dir(), ".config", "mate", "stickynotes-applet.xml", NULL);
- #endif
xmlSaveFormatFile(file, doc, 1);
@@ -879,12 +866,7 @@ stickynotes_load (GdkScreen *screen)
int x, y, w, h;
/* The XML file is $HOME/.config/mate/stickynotes-applet, most probably */
{
- /* retro-compatibilidad con ~/.mate2/ */
- #if GLIB_CHECK_VERSION(2, 6, 0)
gchar* file = g_build_filename(g_get_user_config_dir(), "mate", "stickynotes-applet.xml", NULL);
- #else // glib version < 2.6.0
- gchar* file = g_build_filename(g_get_home_dir(), ".config", "mate", "stickynotes-applet.xml", NULL);
- #endif
if (g_file_test(file, G_FILE_TEST_EXISTS))
{