summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-04-06 17:05:52 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-04-06 17:05:52 -0400
commit0b17658a82d37a1de522a33ff62f4a8235e1e2a1 (patch)
tree20b5f5375fd0d8d830014a9f786c7c9bd0391365 /examples
parent2486f46c0b098e6332ef5bdeda4b78c0ffc0a3cb (diff)
downloadgtk+-0b17658a82d37a1de522a33ff62f4a8235e1e2a1.tar.gz
Replace most uses of <Primary> with <Control>
The only place where we are still using <Primary> is in tests, to ensure we keep parsing it. Otherwise, <Control> is now the preferred syntax.
Diffstat (limited to 'examples')
-rw-r--r--examples/bp/bloatpad.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/bp/bloatpad.c b/examples/bp/bloatpad.c
index fcbca05484..f8f48d4fc9 100644
--- a/examples/bp/bloatpad.c
+++ b/examples/bp/bloatpad.c
@@ -517,13 +517,13 @@ bloat_pad_startup (GApplication *application)
const gchar *action_and_target;
const gchar *accelerators[2];
} accels[] = {
- { "app.new", { "<Primary>n", NULL } },
- { "app.quit", { "<Primary>q", NULL } },
- { "win.copy", { "<Primary>c", NULL } },
- { "win.paste", { "<Primary>p", NULL } },
- { "win.justify::left", { "<Primary>l", NULL } },
- { "win.justify::center", { "<Primary>m", NULL } },
- { "win.justify::right", { "<Primary>r", NULL } }
+ { "app.new", { "<Control>n", NULL } },
+ { "app.quit", { "<Control>q", NULL } },
+ { "win.copy", { "<Control>c", NULL } },
+ { "win.paste", { "<Control>p", NULL } },
+ { "win.justify::left", { "<Control>l", NULL } },
+ { "win.justify::center", { "<Control>m", NULL } },
+ { "win.justify::right", { "<Control>r", NULL } }
};
G_APPLICATION_CLASS (bloat_pad_parent_class)
@@ -592,7 +592,7 @@ bloat_pad_startup (GApplication *application)
g_object_unref (item);
g_object_unref (icon);
- const gchar *new_accels[] = { "<Primary>n", "<Primary>t", NULL };
+ const gchar *new_accels[] = { "<Control>n", "<Control>t", NULL };
gtk_application_set_accels_for_action (GTK_APPLICATION (application), "app.new", new_accels);
dump_accels (GTK_APPLICATION (application));