[gnome-devel-docs] GtkApplicationWindow.c: cleaned up the code.
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-devel-docs] GtkApplicationWindow.c: cleaned up the code.
- Date: Thu, 31 May 2012 21:30:13 +0000 (UTC)
commit 700eaff5608237e5b644976a4c1b11d6c1529ea4
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date:   Thu May 31 17:18:49 2012 -0400
    GtkApplicationWindow.c: cleaned up the code.
 platform-demos/C/samples/GtkApplicationWindow.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/platform-demos/C/samples/GtkApplicationWindow.c b/platform-demos/C/samples/GtkApplicationWindow.c
index 72e9385..d4247b6 100644
--- a/platform-demos/C/samples/GtkApplicationWindow.c
+++ b/platform-demos/C/samples/GtkApplicationWindow.c
@@ -7,11 +7,8 @@ activate (GtkApplication *app,
   GtkWidget *window;
 
   window = gtk_application_window_new (app);
-
-  gtk_window_set_application (GTK_WINDOW (window), GTK_APPLICATION (app));
   gtk_window_set_title (GTK_WINDOW (window), "Hello GNOME");
-
-  gtk_widget_show_all (GTK_WIDGET (window));
+  gtk_widget_show_all (window);
 }
 
 int
@@ -20,7 +17,7 @@ main (int argc, char **argv)
   GtkApplication *app;
   int status;
 
-  app = gtk_application_new ("org.gtk.example",G_APPLICATION_FLAGS_NONE);
+  app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
   g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
   status = g_application_run (G_APPLICATION (app), argc, argv);
   g_object_unref (app);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]