aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/idorange.c10
1 files changed, 10 insertions, 0 deletions
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",
@@ -131,6 +135,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)
{
IdoRange *range = IDO_RANGE (object);