summaryrefslogtreecommitdiff
path: root/gtk/gtkmenuitem.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-04-14 15:28:40 +0200
committerBenjamin Otte <otte@redhat.com>2011-04-16 22:28:40 +0200
commite29cceb39187fa76a29c04b249ca00968c442b39 (patch)
treef111fb0222feb21be3a8814cc7a7107c9d27768c /gtk/gtkmenuitem.c
parent6b712ac93b2c73f59990163b8ea00372cf7ef8b7 (diff)
downloadgtk+-e29cceb39187fa76a29c04b249ca00968c442b39.tar.gz
menushell: Include a function in the private header
Don't copy over the implementation. This avoids a copy of the function. Reverts 0098344f84cedb6347fc99691f6e3d358ec112e7.
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r--gtk/gtkmenuitem.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index ccd12838c3..72fbe4227b 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -168,24 +168,6 @@ G_DEFINE_TYPE_WITH_CODE (GtkMenuItem, gtk_menu_item, GTK_TYPE_BIN,
G_IMPLEMENT_INTERFACE (GTK_TYPE_ACTIVATABLE,
gtk_menu_item_activatable_interface_init))
-static void
-_gtk_menu_shell_activate (GtkMenuShell *menu_shell)
-{
- GtkMenuShellPrivate *priv = menu_shell->priv;
-
- if (!priv->active)
- {
- GdkDevice *device;
-
- device = gtk_get_current_event_device ();
-
- _gtk_menu_shell_set_grab_device (menu_shell, device);
- gtk_device_grab_add (GTK_WIDGET (menu_shell), device, TRUE);
-
- priv->have_grab = TRUE;
- priv->active = TRUE;
- }
-}
static void
gtk_menu_item_class_init (GtkMenuItemClass *klass)