menushell: Include a function in the private header

Don't copy over the implementation. This avoids a copy of the function.
Reverts 0098344f84.
This commit is contained in:
Benjamin Otte 2011-04-14 15:28:40 +02:00
parent 6b712ac93b
commit e29cceb391
2 changed files with 2 additions and 18 deletions

View File

@ -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)

View File

@ -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);
G_END_DECLS