summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: faa9597)
raw | patch | inline | side by side (parent: faa9597)
author | Jon A. Cruz <jon@joncruz.org> | |
Wed, 8 Dec 2010 07:13:41 +0000 (23:13 -0800) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Wed, 8 Dec 2010 07:13:41 +0000 (23:13 -0800) |
src/widgets/sp-color-wheel-selector.cpp | patch | blob | history |
index 784dd23ad4241a1917fcc6e023b051ecf21abdfa..2e36a024e858a5f75c694ee42b58b3a78a21ef50 100644 (file)
gtk_hsv_set_metrics( hsv, diam, ring );
}
+#if GTK_CHECK_VERSION(2,18,0)
static void handleWheelStyleSet(GtkHSV *hsv, GtkStyle* /*previous*/, gpointer /*userData*/)
{
GtkAllocation allocation = {0, 0, 0, 0};
gtk_widget_get_allocation( GTK_WIDGET(hsv), &allocation );
resizeHSVWheel( hsv, &allocation );
}
+#endif // GTK_CHECK_VERSION(2,18,0)
static void handleWheelAllocation(GtkHSV *hsv, GtkAllocation *allocation, gpointer /*userData*/)
{
// GTK does not automatically scale the color wheel, so we have to add that in:
gtk_signal_connect( GTK_OBJECT(_wheel), "size-allocate",
GTK_SIGNAL_FUNC(handleWheelAllocation), _csel );
+#if GTK_CHECK_VERSION(2,18,0)
gtk_signal_connect( GTK_OBJECT(_wheel), "style-set",
GTK_SIGNAL_FUNC(handleWheelStyleSet), _csel );
+#endif // GTK_CHECK_VERSION(2,18,0)
}
static void