Commit e29cceb3 authored by Benjamin Otte's avatar Benjamin Otte

menushell: Include a function in the private header

Don't copy over the implementation. This avoids a copy of the function.
Reverts 0098344f.
parent 6b712ac9
......@@ -168,24 +168,6 @@ G_DEFINE_TYPE_WITH_CODE (GtkMenuItem, gtk_menu_item, GTK_TYPE_BIN,
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)
......@@ -75,6 +75,8 @@ void _gtk_menu_shell_set_keyboard_mode (GtkMenuShell *menu_shell,
gboolean keyboard_mode);
gboolean _gtk_menu_shell_get_keyboard_mode (GtkMenuShell *menu_shell);
void _gtk_menu_shell_activate (GtkMenuShell *menu_shell);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment