[gtk+/wip/gmenu] GtkApplicationWindow: more docs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/gmenu] GtkApplicationWindow: more docs
- Date: Thu, 1 Dec 2011 05:10:09 +0000 (UTC)
commit cbc9f902c22610a3bb9dfb3c9b6b9325805eb05a
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Nov 30 23:59:32 2011 -0500
GtkApplicationWindow: more docs
gtk/gtkapplicationwindow.c | 34 +++++++++++++++++++++++++---------
1 files changed, 25 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index cb8f26f..176be36 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -67,8 +67,8 @@ recalculate_app_menu_state (GtkApplicationWindow *window);
static void
on_shell_shows_app_menu_changed (GtkSettings *settings,
- GParamSpec *pspec,
- gpointer user_data)
+ GParamSpec *pspec,
+ gpointer user_data)
{
GtkApplicationWindow *window = GTK_APPLICATION_WINDOW (user_data);
gboolean val;
@@ -307,9 +307,9 @@ gtk_application_window_real_realize (GtkWidget *widget)
{
window->priv->initialized_app_menu = TRUE;
g_signal_connect (gtk_widget_get_settings ((GtkWidget*)window),
- "notify::gtk-shell-shows-app-menu",
- G_CALLBACK (on_shell_shows_app_menu_changed),
- window);
+ "notify::gtk-shell-shows-app-menu",
+ G_CALLBACK (on_shell_shows_app_menu_changed),
+ window);
on_shell_shows_app_menu_changed (gtk_widget_get_settings ((GtkWidget*)window), NULL, window);
}
@@ -347,8 +347,10 @@ gtk_application_window_real_forall_internal (GtkContainer *container,
static void
-gtk_application_window_get_property (GObject *object, guint prop_id,
- GValue *value, GParamSpec *pspec)
+gtk_application_window_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
{
GtkApplicationWindow *window = GTK_APPLICATION_WINDOW (object);
@@ -364,8 +366,10 @@ gtk_application_window_get_property (GObject *object, guint prop_id,
}
static void
-gtk_application_window_set_property (GObject *object, guint prop_id,
- const GValue *value, GParamSpec *pspec)
+gtk_application_window_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
GtkApplicationWindow *window = GTK_APPLICATION_WINDOW (object);
@@ -441,6 +445,16 @@ gtk_application_window_class_init (GtkApplicationWindowClass *class)
g_type_class_add_private (class, sizeof (GtkApplicationWindowPrivate));
}
+/**
+ * gtk_application_window_new:
+ * @application: a #GtkApplication
+ *
+ * Creates a new #GtkApplicationWindow.
+ *
+ * Returns: a newly created #GtkApplicationWindow
+ *
+ * Since: 3.4
+ */
GtkWidget *
gtk_application_window_new (GtkApplication *application)
{
@@ -908,3 +922,5 @@ gtk_application_window_get_app_menu (GtkApplicationWindow *window)
return menu;
}
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]