[gtk/widget-class-actions: 20/22] window: Adapt
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/widget-class-actions: 20/22] window: Adapt
- Date: Tue, 18 Jun 2019 11:34:52 +0000 (UTC)
commit dc0d073854d4a0574f393721772a2ee1f4d8ff3d
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 18 11:30:11 2019 +0000
window: Adapt
gtk/gtkwindow.c | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index f8134cf7cb..63562455c1 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1214,7 +1214,7 @@ gtk_window_class_init (GtkWindowClass *klass)
NULL);
gtk_widget_class_install_action (widget_class, "focus.move",
gtk_window_activate_focus_move,
- gtk_window_query_action);
+ "i");
}
/**
@@ -1803,21 +1803,6 @@ gtk_window_activate_focus_move (GtkWidget *widget,
GTK_DIR_RIGHT));
}
-static void
-gtk_window_query_action (GtkWidget *widget,
- const char *action_name,
- gboolean *enabled,
- const GVariantType **parameter_type)
-{
- if (strcmp (action_name, "focus.move") == 0)
- {
- if (enabled)
- *enabled = TRUE;
- if (parameter_type)
- *parameter_type = G_VARIANT_TYPE_INT32;
- }
-}
-
static void
gtk_window_init (GtkWindow *window)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]