diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-02-27 07:10:59 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-02-27 07:11:43 -0500 |
commit | 2c25bd85b8690eb0ca6b023122dc130d57c0ca8d (patch) | |
tree | a0a1e65a7230ddfd9a2345a1e8c5b8928a7b090f /gtk/gtkapplication.h | |
parent | 98f3468172004901df6e8bf507e4ec1b0fdac42d (diff) | |
download | gtk+-2c25bd85b8690eb0ca6b023122dc130d57c0ca8d.tar.gz |
gtk: Use versioned deprecations
This patch changes all uses of GDK_DEPRECATED(_FOR) in gtk headers
by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same
time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions
in 3.2 and 3.4.
Diffstat (limited to 'gtk/gtkapplication.h')
-rw-r--r-- | gtk/gtkapplication.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkapplication.h b/gtk/gtkapplication.h index cae9e64d7c..30d095989e 100644 --- a/gtk/gtkapplication.h +++ b/gtk/gtkapplication.h @@ -75,18 +75,24 @@ void gtk_application_remove_window (GtkApplication *application, GtkWindow *window); GList * gtk_application_get_windows (GtkApplication *application); +GDK_AVAILABLE_IN_3_4 GMenuModel * gtk_application_get_app_menu (GtkApplication *application); +GDK_AVAILABLE_IN_3_4 void gtk_application_set_app_menu (GtkApplication *application, GMenuModel *app_menu); +GDK_AVAILABLE_IN_3_4 GMenuModel * gtk_application_get_menubar (GtkApplication *application); +GDK_AVAILABLE_IN_3_4 void gtk_application_set_menubar (GtkApplication *application, GMenuModel *menubar); +GDK_AVAILABLE_IN_3_4 void gtk_application_add_accelerator (GtkApplication *application, const gchar *accelerator, const gchar *action_name, GVariant *parameter); +GDK_AVAILABLE_IN_3_4 void gtk_application_remove_accelerator (GtkApplication *application, const gchar *action_name, GVariant *parameter); @@ -99,12 +105,15 @@ typedef enum GTK_APPLICATION_INHIBIT_IDLE = (1 << 3) } GtkApplicationInhibitFlags; +GDK_AVAILABLE_IN_3_4 guint gtk_application_inhibit (GtkApplication *application, GtkWindow *window, GtkApplicationInhibitFlags flags, const gchar *reason); +GDK_AVAILABLE_IN_3_4 void gtk_application_uninhibit (GtkApplication *application, guint cookie); +GDK_AVAILABLE_IN_3_4 gboolean gtk_application_is_inhibited (GtkApplication *application, GtkApplicationInhibitFlags flags); |