aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2014-03-12 18:24:35 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2014-03-12 18:24:35 +0100
commit3c6efc9dcad6811b217c1f023310a7d9d262da75 (patch)
tree59753f4e7f7b6d4d8395a72e2e7530e3a3c7cc48
parentb500b83b4b0d5ac3e69e6d908ad43aa243996e45 (diff)
downloadayatana-ido-3c6efc9dcad6811b217c1f023310a7d9d262da75.tar.gz
ayatana-ido-3c6efc9dcad6811b217c1f023310a7d9d262da75.tar.bz2
ayatana-ido-3c6efc9dcad6811b217c1f023310a7d9d262da75.zip
Remove toggle-size-allocate handler
The variable it set isn't used anymore. Scale menu items don't ever have a toggle mark.
-rw-r--r--src/idoscalemenuitem.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/idoscalemenuitem.c b/src/idoscalemenuitem.c
index 8fec7df..2a17edb 100644
--- a/src/idoscalemenuitem.c
+++ b/src/idoscalemenuitem.c
@@ -76,7 +76,6 @@ struct _IdoScaleMenuItemPrivate {
gboolean grabbed;
IdoScaleMenuItemStyle style;
IdoRangeStyle range_style;
- gint toggle_size;
gboolean ignore_value_changed;
gboolean has_focus;
};
@@ -135,16 +134,6 @@ ido_scale_menu_item_scroll_event (GtkWidget *menuitem,
}
static void
-ido_scale_menu_item_toggle_size_allocate (IdoScaleMenuItem *item,
- gint toggle_size,
- gpointer user_data)
-{
- IdoScaleMenuItemPrivate *priv = GET_PRIVATE (item);
-
- priv->toggle_size = toggle_size;
-}
-
-static void
ido_scale_menu_item_scale_value_changed (GtkRange *range,
gpointer user_data)
{
@@ -197,10 +186,6 @@ ido_scale_menu_item_constructed (GObject *object)
update_packing (self, priv->style);
- g_signal_connect (self, "toggle-size-allocate",
- G_CALLBACK (ido_scale_menu_item_toggle_size_allocate),
- NULL);
-
gtk_container_add (GTK_CONTAINER (self), hbox);
gtk_widget_add_events (GTK_WIDGET(self), GDK_SCROLL_MASK);