_gtk_window_notify_keys_changed (window);
}
-/**
+/*
* gtk_window_mnemonic_activate:
* @window: a #GtkWindow
* @keyval: the mnemonic
*
* Returns: %TRUE if the activation is done.
*/
-gboolean
+static gboolean
gtk_window_mnemonic_activate (GtkWindow *window,
guint keyval,
GdkModifierType modifier)
return FALSE;
}
-/**
- * gtk_window_propagate_key_event:
- * @window: a #GtkWindow
- * @event: a #GdkEvent
- *
- * Propagate a key press or release event to the focus widget and
- * up the focus container chain until a widget handles @event.
- * This is normally called by the default ::key_press_event and
- * ::key_release_event handlers for toplevel windows,
- * however in some cases it may be useful to call this directly when
- * overriding the standard key handling for a toplevel window.
- *
- * Returns: %TRUE if a widget in the focus chain handled the event.
- */
-gboolean
-gtk_window_propagate_key_event (GtkWindow *window,
- GdkEvent *event)
-{
- GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
- gboolean handled = FALSE;
- GtkWidget *widget, *focus, *target;
-
- g_return_val_if_fail (GTK_IS_WINDOW (window), FALSE);
-
- widget = GTK_WIDGET (window);
-
- focus = priv->focus_widget;
- if (focus)
- g_object_ref (focus);
-
- target = focus;
-
- while (!handled &&
- focus && focus != widget &&
- gtk_widget_get_root (focus) == GTK_ROOT (widget))
- {
- GtkWidget *parent;
-
- if (gtk_widget_is_sensitive (focus))
- {
- handled = gtk_widget_event (focus, (GdkEvent *)event, target);
- if (handled)
- break;
- }
-
- parent = _gtk_widget_get_parent (focus);
- if (parent)
- g_object_ref (parent);
-
- g_object_unref (focus);
-
- focus = parent;
- }
-
- if (focus)
- g_object_unref (focus);
-
- return handled;
-}
-
static GtkWindowRegion
get_active_region_type (GtkWindow *window, gint x, gint y)
{
guint keyval,
GtkWidget *target);
GDK_AVAILABLE_IN_ALL
-gboolean gtk_window_mnemonic_activate (GtkWindow *window,
- guint keyval,
- GdkModifierType modifier);
-GDK_AVAILABLE_IN_ALL
void gtk_window_set_mnemonic_modifier (GtkWindow *window,
GdkModifierType modifier);
GDK_AVAILABLE_IN_ALL
GdkModifierType gtk_window_get_mnemonic_modifier (GtkWindow *window);
-GDK_AVAILABLE_IN_ALL
-gboolean gtk_window_activate_key (GtkWindow *window,
- GdkEvent *event);
-GDK_AVAILABLE_IN_ALL
-gboolean gtk_window_propagate_key_event (GtkWindow *window,
- GdkEvent *event);
-
GDK_AVAILABLE_IN_ALL
void gtk_window_present (GtkWindow *window);
GDK_AVAILABLE_IN_ALL