aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Hruby <michal.mhr@gmail.com>2011-10-03 14:33:51 +0200
committerMichal Hruby <michal.mhr@gmail.com>2011-10-03 14:33:51 +0200
commit4dd0ca962c0875c3474feebeab3079aba1b17845 (patch)
tree16601b2d696dad52ad1aa67c6ed097fe2d566722
parent8a32a25405f17569a97a36e909b4cbd3347aa0cd (diff)
downloadayatana-ido-4dd0ca962c0875c3474feebeab3079aba1b17845.tar.gz
ayatana-ido-4dd0ca962c0875c3474feebeab3079aba1b17845.tar.bz2
ayatana-ido-4dd0ca962c0875c3474feebeab3079aba1b17845.zip
Fix bug #865122
-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);