aboutsummaryrefslogtreecommitdiff
path: root/src/idorange.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-08-22 09:57:08 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-08-22 09:57:08 -0500
commit2481b74fa64122365eef5293ae86d71b5fae3fa6 (patch)
treecc3845ff2ee2c8ec173b072de9fabe29670588c4 /src/idorange.c
parent8f279d3f26f588bb022f3f0d05edff6858035eab (diff)
parent73302803e066d8d36e425feda15f57fca44f4bc5 (diff)
downloadayatana-ido-2481b74fa64122365eef5293ae86d71b5fae3fa6.tar.gz
ayatana-ido-2481b74fa64122365eef5293ae86d71b5fae3fa6.tar.bz2
ayatana-ido-2481b74fa64122365eef5293ae86d71b5fae3fa6.zip
merge lp:~charlesk/ido/nogtk2 to remove gtk2 support from the configure script and the source
Diffstat (limited to 'src/idorange.c')
-rw-r--r--src/idorange.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/idorange.c b/src/idorange.c
index 7d7ee85..4f165bb 100644
--- a/src/idorange.c
+++ b/src/idorange.c
@@ -41,10 +41,6 @@ static void ido_range_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec);
-#ifdef USE_GTK3
-static void ido_range_grab_notify (GtkWidget *widget,
- gboolean was_grabbed);
-#endif
#define IDO_RANGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), IDO_TYPE_RANGE, IdoRangePrivate))
@@ -65,10 +61,6 @@ ido_range_class_init (IdoRangeClass *class)
gobject_class->set_property = ido_range_set_property;
gobject_class->get_property = ido_range_get_property;
-#ifdef USE_GTK3
- widget_class->grab_notify = ido_range_grab_notify;
-#endif
-
g_object_class_install_property (gobject_class,
PROP_STYLE,
g_param_spec_enum ("range-style",
@@ -139,21 +131,6 @@ ido_range_set_property (GObject *object,
}
}
-#ifdef USE_GTK3
-static void
-ido_range_grab_notify (GtkWidget *widget, gboolean was_grabbed)
-{
- /*
- * FIXME: workaround for lp bug #865122.
- * Without this handler, GtkRange will call remove_grab which results
- * in an infinite loop of grab_notifies.
- *
- * The widget will still work properly, because grab-broken-event will get
- * properly fired and internal state of GtkRange will be properly updated.
- */
-}
-#endif
-
static void
ido_range_constructed (GObject *object)
{
@@ -176,16 +153,6 @@ ido_range_constructed (GObject *object)
"knob-width", &width,
"knob-height", &height,
NULL);
-
-#ifndef USE_GTK3
- g_snprintf (buf, sizeof (buf),
- "style \"ido-range\" {\n"
- " GtkRange::slider-width = %d\n"
- " GtkScale::slider-length = %d\n"
- "} widget \"*.idorange-%p\" style \"ido-range\"\n",
- width, height, range);
- gtk_rc_parse_string (buf);
-#endif
}
gtk_range_set_slider_size_fixed (GTK_RANGE (range), TRUE);