From 4dd0ca962c0875c3474feebeab3079aba1b17845 Mon Sep 17 00:00:00 2001 From: Michal Hruby Date: Mon, 3 Oct 2011 14:33:51 +0200 Subject: Fix bug #865122 --- src/idorange.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/idorange.c b/src/idorange.c index ba5c2c8..31d17ec 100644 --- a/src/idorange.c +++ b/src/idorange.c @@ -40,6 +40,8 @@ static void ido_range_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); +static void ido_range_grab_notify (GtkWidget *widget, + gboolean was_grabbed); #define IDO_RANGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), IDO_TYPE_RANGE, IdoRangePrivate)) @@ -60,6 +62,8 @@ ido_range_class_init (IdoRangeClass *class) gobject_class->set_property = ido_range_set_property; gobject_class->get_property = ido_range_get_property; + widget_class->grab_notify = ido_range_grab_notify; + g_object_class_install_property (gobject_class, PROP_STYLE, g_param_spec_enum ("range-style", @@ -130,6 +134,12 @@ ido_range_set_property (GObject *object, } } +static void +ido_range_grab_notify (GtkWidget *widget, gboolean was_grabbed) +{ + g_return_if_fail (IDO_IS_RANGE (widget)); +} + static void ido_range_constructed (GObject *object) { -- cgit v1.2.3