summaryrefslogtreecommitdiff
path: root/src/eom-window.c
diff options
context:
space:
mode:
authorLaszlo Boros <[email protected]>2013-08-18 01:26:29 +0200
committerStefano Karapetsas <[email protected]>2013-10-17 12:28:11 +0200
commit1e9954cbc51fc67b1e34cd6dd8f0a77a360eb4c8 (patch)
tree0051295b73ee5aa6caa0210e6a3ac7af11edf674 /src/eom-window.c
parent7a364394044201fbd23a9fc5e152f512d24fd876 (diff)
downloadeom-1e9954cbc51fc67b1e34cd6dd8f0a77a360eb4c8.tar.bz2
eom-1e9954cbc51fc67b1e34cd6dd8f0a77a360eb4c8.tar.xz
GTK3 support
Diffstat (limited to 'src/eom-window.c')
-rw-r--r--src/eom-window.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index 3ba7259..dc8b638 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -75,6 +75,12 @@
#include <lcms2.h>
#endif
+#if GTK_CHECK_VERSION(3, 0, 0)
+ #define gtk_widget_hide_all(w) gtk_widget_hide(w)
+ #define MATE_DESKTOP_USE_UNSTABLE_API
+ #include <libmate/mate-desktop-utils.h>
+#endif
+
#define EOM_WINDOW_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_WINDOW, EomWindowPrivate))
@@ -2645,7 +2651,9 @@ eom_window_cmd_edit_toolbar (GtkAction *action, gpointer *user_data)
gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 2);
+ #if !GTK_CHECK_VERSION(3, 0, 0)
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
+ #endif
gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 400);
@@ -2844,10 +2852,21 @@ wallpaper_info_bar_response (GtkInfoBar *bar, gint response, EomWindow *window)
GdkScreen *screen;
screen = gtk_widget_get_screen (GTK_WIDGET (window));
+ #if GTK_CHECK_VERSION(3, 0, 0)
+ /*
+
+ commented out, since my setup does not have the latest libmate-desktop with this function to call
+
+ mate_gdk_spawn_command_line_on_screen (screen,
+ "mate-appearance-properties"
+ " --show-page=background",
+ NULL);*/
+ #else
gdk_spawn_command_line_on_screen (screen,
"mate-appearance-properties"
" --show-page=background",
NULL);
+ #endif
}
/* Close message area on every response */
@@ -5062,8 +5081,10 @@ eom_window_window_state_event (GtkWidget *widget,
show = !(event->new_window_state &
(GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN));
+ #if !GTK_CHECK_VERSION(3, 0, 0)
eom_statusbar_set_has_resize_grip (EOM_STATUSBAR (window->priv->statusbar),
show);
+ #endif
}
return FALSE;