aboutsummaryrefslogtreecommitdiff
path: root/src/idoswitchmenuitem.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-08-21 16:43:49 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-08-21 16:43:49 -0500
commit402fffb5f852115dc4c14519e4daaf419166a7d0 (patch)
treeb17e5acd65850e4ca4f4e1b1a86346b9e822a107 /src/idoswitchmenuitem.c
parentfbd76f40c44dd02acaa73ebaf843189b96da3357 (diff)
downloadayatana-ido-402fffb5f852115dc4c14519e4daaf419166a7d0.tar.gz
ayatana-ido-402fffb5f852115dc4c14519e4daaf419166a7d0.tar.bz2
ayatana-ido-402fffb5f852115dc4c14519e4daaf419166a7d0.zip
revert the event delegation for now, it's not necessary for FF
Diffstat (limited to 'src/idoswitchmenuitem.c')
-rw-r--r--src/idoswitchmenuitem.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/idoswitchmenuitem.c b/src/idoswitchmenuitem.c
index 2ff60a3..3831336 100644
--- a/src/idoswitchmenuitem.c
+++ b/src/idoswitchmenuitem.c
@@ -24,10 +24,6 @@
static gboolean ido_switch_menu_button_release_event (GtkWidget * widget,
GdkEventButton * event);
-static gboolean ido_switch_menu_button_press_event (GtkWidget * widget,
- GdkEventButton * event);
-static gboolean ido_switch_menu_item_motion_notify_event (GtkWidget *menuitem,
- GdkEventMotion *event);
struct _IdoSwitchMenuItemPrivate
@@ -54,9 +50,7 @@ ido_switch_menu_item_class_init (IdoSwitchMenuItemClass *klass)
g_type_class_add_private (gobject_class, sizeof (IdoSwitchMenuItemPrivate));
widget_class = GTK_WIDGET_CLASS (klass);
- widget_class->button_press_event = ido_switch_menu_button_press_event;
widget_class->button_release_event = ido_switch_menu_button_release_event;
- widget_class->motion_notify_event = ido_switch_menu_item_motion_notify_event;
check_class = GTK_CHECK_MENU_ITEM_CLASS (klass);
check_class->draw_indicator = NULL;
@@ -108,51 +102,6 @@ ido_switch_menu_button_release_event (GtkWidget * widget, GdkEventButton * event
}
/***
-****
-****
-***/
-
-static gboolean
-ido_switch_menu_button_press_event (GtkWidget * w, GdkEventButton * e)
-{
- gboolean delegated = FALSE;
- IdoSwitchMenuItemPrivate * p = IDO_SWITCH_MENU_ITEM(w)->priv;
-
- GtkAllocation a;
- gtk_widget_get_allocation (p->switch_w, &a);
-
- if ((a.x <= e->x) && (e->x < a.x + a.width))
- {
- e->x -= a.x;
- e->x_root -= a.x;
- gtk_widget_event (p->switch_w, (GdkEvent*)e);
- delegated = TRUE;
- }
-
- return delegated;
-}
-
-static gboolean
-ido_switch_menu_item_motion_notify_event (GtkWidget * w, GdkEventMotion * e)
-{
- gboolean delegated = FALSE;
- IdoSwitchMenuItemPrivate * p = IDO_SWITCH_MENU_ITEM(w)->priv;
-
- GtkAllocation a;
- gtk_widget_get_allocation (p->switch_w, &a);
-
- if ((a.x <= e->x) && (e->x < a.x + a.width))
- {
- e->x -= a.x;
- e->x_root -= a.x;
- gtk_widget_event (p->switch_w, (GdkEvent*)e);
- delegated = TRUE;
- }
-
- return delegated;
-}
-
-/***
**** Public API
***/