summaryrefslogtreecommitdiff
path: root/src/xfdesktop-icon-view.c
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2017-04-22 11:33:29 +0300
committerEric Koegel <eric.koegel@gmail.com>2017-04-22 21:02:06 +0300
commitd167fea87e8443f13ef1c220464de182cf742e8b (patch)
tree45ee07d335a51e852065dc15d11f4806d49a0243 /src/xfdesktop-icon-view.c
parent85b1bdce5ca660681041321b552898a8edadcb89 (diff)
downloadxfdesktop-d167fea87e8443f13ef1c220464de182cf742e8b.tar.gz
Tell Gtk what version we're targeting
This is awesome. Now Gtk will ignore stuff newer than 3.20 and not nag about it and warn if we use something too new. The previous 3.22 ifdef code has been disabled for now.
Diffstat (limited to 'src/xfdesktop-icon-view.c')
-rw-r--r--src/xfdesktop-icon-view.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index 655226bb..caf59b41 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -2488,7 +2488,7 @@ xfdesktop_rectangle_is_bounded_by(GdkRectangle *rect,
static void
xfdesktop_icon_view_setup_grids_xinerama(XfdesktopIconView *icon_view)
{
-#if GTK_CHECK_VERSION (3, 22, 0)
+#if 0 /* GTK_CHECK_VERSION (3, 22, 0) */
GdkDisplay *display;
#else
GdkScreen *gscreen;
@@ -2498,7 +2498,7 @@ xfdesktop_icon_view_setup_grids_xinerama(XfdesktopIconView *icon_view)
DBG("entering");
-#if GTK_CHECK_VERSION (3, 22, 0)
+#if 0 /* GTK_CHECK_VERSION (3, 22, 0) */
display = gtk_widget_get_display(GTK_WIDGET(icon_view));
nmonitors = gdk_display_get_n_monitors(display);
#else
@@ -2510,7 +2510,7 @@ xfdesktop_icon_view_setup_grids_xinerama(XfdesktopIconView *icon_view)
monitor_geoms = g_new0(GdkRectangle, nmonitors);
-#if GTK_CHECK_VERSION (3, 22, 0)
+#if 0 /* GTK_CHECK_VERSION (3, 22, 0) */
for(i = 0; i < nmonitors; ++i) {
gdk_monitor_get_geometry(gdk_display_get_monitor(display, i), &monitor_geoms[i]);
}
@@ -3598,7 +3598,7 @@ xfdesktop_icon_view_add_item_internal(XfdesktopIconView *icon_view,
{
gint16 row, col;
cairo_rectangle_int_t fake_area;
-#if GTK_CHECK_VERSION (3, 22, 0)
+#if 0 /* GTK_CHECK_VERSION (3, 22, 0) */
GdkDrawingContext *gdc;
#endif
cairo_region_t *region;
@@ -3631,7 +3631,7 @@ xfdesktop_icon_view_add_item_internal(XfdesktopIconView *icon_view,
/* Pack it into a cairo region to tell gdk that's where we will be painting */
region = cairo_region_create_rectangle(&fake_area);
-#if GTK_CHECK_VERSION (3, 22, 0)
+#if 0 /* GTK_CHECK_VERSION (3, 22, 0) */
gdc = gdk_window_begin_draw_frame(gdkwindow, region);
cr = gdk_drawing_context_get_cairo_context(gdc);
#else
@@ -3641,7 +3641,7 @@ xfdesktop_icon_view_add_item_internal(XfdesktopIconView *icon_view,
/* paint the icon */
xfdesktop_icon_view_paint_icon(icon_view, icon, &fake_area, cr);
-#if GTK_CHECK_VERSION (3, 22, 0)
+#if 0 /* GTK_CHECK_VERSION (3, 22, 0) */
/* we're done drawing */
gdk_window_end_draw_frame(gdkwindow, gdc);
#else