[gnome-devel-docs] Updated label.c example from GtkWindow to GtkApplicationWindow.
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Updated label.c example from GtkWindow to GtkApplicationWindow.
- Date: Fri, 25 May 2012 00:22:07 +0000 (UTC)
commit 941acb201124d7a7f27e09a78e208ee6e9fdb0e9
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date: Thu May 24 20:15:58 2012 -0400
Updated label.c example from GtkWindow to GtkApplicationWindow.
platform-demos/C/samples/label.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/platform-demos/C/samples/label.c b/platform-demos/C/samples/label.c
index 0e78460..53aa172 100644
--- a/platform-demos/C/samples/label.c
+++ b/platform-demos/C/samples/label.c
@@ -9,7 +9,7 @@ activate (GtkApplication *app,
GtkWidget *window;
GtkWidget *label;
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ window = gtk_application_window_new (app);
label = gtk_label_new("Hello GNOME!");
gtk_window_set_application (GTK_WINDOW (window), GTK_APPLICATION (app));
@@ -36,5 +36,3 @@ main (int argc, char **argv)
g_object_unref (app);
return status;
}
-
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]