[gnome-games/sudoku-vala] Use Gtk.ApplicationWindow



commit 380ee8fbed270131755c4ce2ee7b6fcdc969d321
Author: Christopher Baines <cbaines8 gmail com>
Date:   Thu May 10 22:57:20 2012 +0100

    Use Gtk.ApplicationWindow
    
    Replace Gtk.Window with Gtk.ApplicationWindow.

 gnome-sudoku/data/gnome-sudoku.ui  |    2 +-
 gnome-sudoku/src/gnome-sudoku.vala |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-sudoku/data/gnome-sudoku.ui b/gnome-sudoku/data/gnome-sudoku.ui
index c84af85..391d7fa 100644
--- a/gnome-sudoku/data/gnome-sudoku.ui
+++ b/gnome-sudoku/data/gnome-sudoku.ui
@@ -2,7 +2,7 @@
 <interface>
   <requires lib="gtk+" version="2.16"/>
   <!-- interface-naming-policy project-wide -->
-  <object class="GtkWindow" id="sudoku_app">
+  <object class="GtkApplicationWindow" id="sudoku_app">
     <property name="title" translatable="yes">Sudoku</property>
     <signal name="window-state-event" handler="sudoku_app_window_state_event_cb" swapped="no"/>
     <signal name="delete-event" handler="quit_cb" swapped="no"/>
diff --git a/gnome-sudoku/src/gnome-sudoku.vala b/gnome-sudoku/src/gnome-sudoku.vala
index e7c775d..6fb1eba 100644
--- a/gnome-sudoku/src/gnome-sudoku.vala
+++ b/gnome-sudoku/src/gnome-sudoku.vala
@@ -5,7 +5,7 @@ public class Sudoku : Gtk.Application
 
     private SudokuGame game;
     private Gtk.Toolbar toolbar;
-    private Gtk.Window window;
+    private Gtk.ApplicationWindow window;
     private SudokuView view;
     private Gtk.CheckMenuItem fullscreen_menu;
 
@@ -28,7 +28,7 @@ public class Sudoku : Gtk.Application
         {
             GLib.warning ("Could not load UI: %s", e.message);
         }
-        window = (Gtk.Window) builder.get_object ("sudoku_app");
+        window = (Gtk.ApplicationWindow) builder.get_object ("sudoku_app");
 
         if (settings.get_boolean ("fullscreen"))
             window.fullscreen ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]