diff options
Diffstat (limited to 'src/caja-desktop-window.c')
-rw-r--r-- | src/caja-desktop-window.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c index 1e453672..c7b55635 100644 --- a/src/caja-desktop-window.c +++ b/src/caja-desktop-window.c @@ -35,7 +35,7 @@ #include <libcaja-private/caja-icon-names.h> #include <gio/gio.h> #include <glib/gi18n.h> -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION (3, 22, 0) #define MATE_DESKTOP_USE_UNSTABLE_API #include <libmate-desktop/mate-bg.h> #endif @@ -45,7 +45,7 @@ struct CajaDesktopWindowDetails gulong size_changed_id; gboolean loaded; -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION (3, 22, 0) gboolean composited; cairo_surface_t *surface; #endif @@ -54,7 +54,7 @@ struct CajaDesktopWindowDetails G_DEFINE_TYPE (CajaDesktopWindow, caja_desktop_window, CAJA_TYPE_SPATIAL_WINDOW); -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION (3, 22, 0) static void background_changed (CajaDesktopWindow *window) @@ -155,7 +155,7 @@ caja_desktop_window_finalize (GObject *obj) G_OBJECT_CLASS (caja_desktop_window_parent_class)->finalize (obj); } -#endif +#endif /* GTK_CHECK_VERSION (3, 22, 0) */ static void caja_desktop_window_init (CajaDesktopWindow *window) @@ -171,7 +171,7 @@ caja_desktop_window_init (CajaDesktopWindow *window) context = gtk_widget_get_style_context (GTK_WIDGET (window)); gtk_style_context_add_class (context, "caja-desktop-window"); -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION (3, 22, 0) window->details->composited = TRUE; caja_desktop_window_composited_changed (GTK_WIDGET (window)); #endif @@ -259,7 +259,7 @@ caja_desktop_window_new (CajaApplication *application, /* Stop wrong desktop window size in GTK 3.20*/ /* We don't want to set a default size, which the parent does, since this */ /* will cause the desktop window to open at the wrong size in gtk 3.20 */ -#if GTK_CHECK_VERSION (3, 19, 0) +#if GTK_CHECK_VERSION (3, 20, 0) gtk_window_set_default_size (GTK_WINDOW (window), -1, -1); #endif /* Special sawmill setting*/ @@ -281,7 +281,7 @@ map (GtkWidget *widget) /* Chain up to realize our children */ GTK_WIDGET_CLASS (caja_desktop_window_parent_class)->map (widget); gdk_window_lower (gtk_widget_get_window (widget)); -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION (3, 22, 0) GdkWindow *window; GdkRGBA transparent = { 0, 0, 0, 0 }; @@ -353,7 +353,7 @@ realize (GtkWidget *widget) { CajaDesktopWindow *window; CajaDesktopWindowDetails *details; -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION (3, 22, 0) GdkVisual *visual; #endif window = CAJA_DESKTOP_WINDOW (widget); @@ -362,7 +362,7 @@ realize (GtkWidget *widget) /* Make sure we get keyboard events */ gtk_widget_set_events (widget, gtk_widget_get_events (widget) | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK); -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION (3, 22, 0) visual = gdk_screen_get_rgba_visual (gtk_widget_get_screen (widget)); if (visual) { gtk_widget_set_visual (widget, visual); @@ -399,7 +399,7 @@ caja_desktop_window_class_init (CajaDesktopWindowClass *klass) { GtkWidgetClass *wclass = GTK_WIDGET_CLASS (klass); CajaWindowClass *nclass = CAJA_WINDOW_CLASS (klass); -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION (3, 22, 0) GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = caja_desktop_window_finalize; @@ -408,7 +408,7 @@ caja_desktop_window_class_init (CajaDesktopWindowClass *klass) wclass->realize = realize; wclass->unrealize = unrealize; wclass->map = map; -#if GTK_CHECK_VERSION(3, 21, 0) +#if GTK_CHECK_VERSION (3, 22, 0) wclass->composited_changed = caja_desktop_window_composited_changed; wclass->draw = caja_desktop_window_draw; #endif |