forked from AuroraMiddleware/gtk
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:
parent
6b712ac93b
commit
e29cceb391
@ -168,24 +168,6 @@ G_DEFINE_TYPE_WITH_CODE (GtkMenuItem, gtk_menu_item, GTK_TYPE_BIN,
|
|||||||
G_IMPLEMENT_INTERFACE (GTK_TYPE_ACTIVATABLE,
|
G_IMPLEMENT_INTERFACE (GTK_TYPE_ACTIVATABLE,
|
||||||
gtk_menu_item_activatable_interface_init))
|
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
|
static void
|
||||||
gtk_menu_item_class_init (GtkMenuItemClass *klass)
|
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 keyboard_mode);
|
||||||
gboolean _gtk_menu_shell_get_keyboard_mode (GtkMenuShell *menu_shell);
|
gboolean _gtk_menu_shell_get_keyboard_mode (GtkMenuShell *menu_shell);
|
||||||
|
|
||||||
|
void _gtk_menu_shell_activate (GtkMenuShell *menu_shell);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user