[gnome-games/sudoku-vala] Removed the toolbar
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/sudoku-vala] Removed the toolbar
- Date: Mon, 4 Jun 2012 22:43:12 +0000 (UTC)
commit 5854e4dd28a29ce84c722838e8189858cd08d606
Author: Christopher Baines <cbaines8 gmail com>
Date: Sun Jun 3 21:01:46 2012 +0100
Removed the toolbar
gnome-sudoku/data/gnome-sudoku.ui | 104 ------------------------------------
gnome-sudoku/src/gnome-sudoku.vala | 15 ++---
2 files changed, 6 insertions(+), 113 deletions(-)
---
diff --git a/gnome-sudoku/data/gnome-sudoku.ui b/gnome-sudoku/data/gnome-sudoku.ui
index 078888d..e28cf9f 100644
--- a/gnome-sudoku/data/gnome-sudoku.ui
+++ b/gnome-sudoku/data/gnome-sudoku.ui
@@ -9,110 +9,6 @@
<object class="GtkVBox" id="main_vbox">
<property name="visible">True</property>
<child>
- <object class="GtkToolbar" id="sudoku_toolbar">
- <property name="visible">True</property>
- <child>
- <object class="GtkToolButton" id="new_game_toolbutton">
- <property name="visible">True</property>
- <property name="label" translatable="yes">New</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-new</property>
- <signal name="clicked" handler="new_game_cb"/>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkSeparatorToolItem" id="toolbar_separator0">
- <property name="visible">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToolButton" id="undo_toolbutton">
- <property name="visible">True</property>
- <property name="is_important">True</property>
- <property name="label" translatable="yes">Undo</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-undo</property>
- <signal name="clicked" handler="undo_cb"/>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToolButton" id="redo_toolbutton">
- <property name="visible">True</property>
- <property name="is_important">True</property>
- <property name="label" translatable="yes">Redo</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-redo</property>
- <signal name="clicked" handler="redo_cb"/>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkSeparatorToolItem" id="toolbar_separator1">
- <property name="visible">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToolButton" id="hint_toolbutton">
- <property name="visible">True</property>
- <property name="is_important">True</property>
- <property name="label" translatable="yes">Hint</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-info</property>
- <signal name="clicked" handler="hint_cb"/>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkSeparatorToolItem" id="toolbar_separator2">
- <property name="visible">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToolButton" id="toggle_tracker_toolbutton">
- <property name="visible">True</property>
- <property name="is_important">True</property>
- <property name="label" translatable="yes">Track Additions</property>
- <property name="use_underline">True</property>
- <signal name="clicked" handler="toggle_tracker_cb"/>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
<placeholder/>
</child>
</object>
diff --git a/gnome-sudoku/src/gnome-sudoku.vala b/gnome-sudoku/src/gnome-sudoku.vala
index 2657bb2..979d9f6 100644
--- a/gnome-sudoku/src/gnome-sudoku.vala
+++ b/gnome-sudoku/src/gnome-sudoku.vala
@@ -4,7 +4,6 @@ public class Sudoku : Gtk.Application
private Gtk.Builder builder;
private SudokuGame game;
- private Gtk.Toolbar toolbar;
private Gtk.ApplicationWindow window;
private SudokuView view;
private Gtk.CheckMenuItem fullscreen_menu;
@@ -59,10 +58,8 @@ public class Sudoku : Gtk.Application
fullscreen_menu = (Gtk.CheckMenuItem) builder.get_object ("toggle_fullscreen_imagemenuitem");
var main_vbox = (Gtk.VBox) builder.get_object ("main_vbox");
- toolbar = (Gtk.Toolbar) builder.get_object ("sudoku_toolbar");
- toolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);
settings.bind ("show-toolbar", builder.get_object ("sudoku_toolbar"), "visible", SettingsBindFlags.DEFAULT);
- settings.bind("show-toolbar", builder.get_object ("toggle_toolbar_imagemenuitem"), "active", SettingsBindFlags.GET);
+ settings.bind("show-toolbar", builder.get_object ("toggle_toolbar_imagemenuitem"), "active", SettingsBindFlags.GET);
game = new SudokuGame ();
game.set_from_string ("41593....8..5....7..7..41........36926.3.8.51534........67..2..7....2..3....91786");
view = new SudokuView (game);
@@ -95,7 +92,7 @@ public class Sudoku : Gtk.Application
public void print_cb ()
{
- stdout.printf ("TODO: Print\n");
+ stdout.printf ("TODO: Print\n");
}
public void print_multiple_cb ()
@@ -104,20 +101,20 @@ public class Sudoku : Gtk.Application
}
public void possible_numbers_cb ()
- {
+ {
stdout.printf ("TODO: Possible numbers\n");
}
-
+
private void possible_numbers_changed (SimpleAction action, Variant state)
{
stdout.printf ("TODO: Possible numbers changed\n");
}
public void unfillable_squares_cb ()
- {
+ {
stdout.printf ("TODO: Unfillable squares\n");
}
-
+
private void unfillable_squares_changed (SimpleAction action, Variant state)
{
stdout.printf ("TODO: Unfillable squares changed\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]