summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2013-10-15 09:29:41 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2013-10-15 09:29:41 +0000
commitbe15360b7bf0790a49340a4bbacbb0770d7b11cd (patch)
treee3b5d67937e5499859f56d0ad9a961ffd16efe86 /src/widgets
parentReplace deprecated thread protection macros (diff)
downloadinkscape-be15360b7bf0790a49340a4bbacbb0770d7b11cd.tar.gz
inkscape-be15360b7bf0790a49340a4bbacbb0770d7b11cd.zip
eek-preview: Hide unused variable in gtk3 build
(bzr r12691)
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/eek-preview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/eek-preview.cpp b/src/widgets/eek-preview.cpp
index 988aa2453..19dbb04ab 100644
--- a/src/widgets/eek-preview.cpp
+++ b/src/widgets/eek-preview.cpp
@@ -245,12 +245,14 @@ gboolean eek_preview_draw(GtkWidget *widget,
GtkAllocation allocation;
gtk_widget_get_allocation(widget, &allocation);
-
+
+#if !GTK_CHECK_VERSION(3,0,0)
GdkColor fg = { 0,
static_cast<guint16>(priv->r),
static_cast<guint16>(priv->g),
static_cast<guint16>(priv->b)
};
+#endif
gint insetTop = 0, insetBottom = 0;
gint insetLeft = 0, insetRight = 0;