[gtk+] examples: Don't use gtk_application_add_accelerator
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] examples: Don't use gtk_application_add_accelerator
- Date: Thu, 22 May 2014 12:52:19 +0000 (UTC)
commit c3a9a20839955a98266463c6fad4f0190feaccc2
Author: Matthias Clasen <mclasen redhat com>
Date: Thu May 22 08:51:37 2014 -0400
examples: Don't use gtk_application_add_accelerator
It has been deprecated.
examples/plugman.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/examples/plugman.c b/examples/plugman.c
index c074aa9..3a4b7b3 100644
--- a/examples/plugman.c
+++ b/examples/plugman.c
@@ -476,10 +476,11 @@ main (int argc, char **argv)
{
PlugMan *plug_man;
int status;
+ const gchar *accels[] = { "F11", NULL };
plug_man = plug_man_new ();
- gtk_application_add_accelerator (GTK_APPLICATION (plug_man),
- "F11", "win.fullscreen", NULL);
+ gtk_application_set_accels_for_action (GTK_APPLICATION (plug_man),
+ "win.fullscreen", accels);
status = g_application_run (G_APPLICATION (plug_man), argc, argv);
g_object_unref (plug_man);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]