diff options
Diffstat (limited to 'src/eom-window.c')
-rw-r--r-- | src/eom-window.c | 21 |
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; |