[gnome-sudoku/vala-port] Remove Undo, Redo options from Appmenu
- From: Parin Porecha <parinporecha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku/vala-port] Remove Undo, Redo options from Appmenu
- Date: Tue, 27 May 2014 13:20:27 +0000 (UTC)
commit 7ea04c24e08318534037e914acadcbbbdfc1def3
Author: Parin Porecha <parinporecha gmail com>
Date: Fri May 23 14:51:12 2014 +0530
Remove Undo, Redo options from Appmenu
Also remove Undo button below the number-picker
data/gnome-sudoku-menu.ui | 11 -----------
data/gnome-sudoku.ui | 15 ---------------
src/gnome-sudoku.vala | 5 -----
3 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/data/gnome-sudoku-menu.ui b/data/gnome-sudoku-menu.ui
index 5ab0216..a2d98fe 100644
--- a/data/gnome-sudoku-menu.ui
+++ b/data/gnome-sudoku-menu.ui
@@ -16,17 +16,6 @@
</section>
<section>
<item>
- <attribute name="label" translatable="yes">_Undo</attribute>
- <attribute name="action">app.undo</attribute>
- <attribute name="accel"><Primary>u</attribute>
- </item>
- <item>
- <attribute name="label" translatable="yes">_Redo</attribute>
- <attribute name="action">app.redo</attribute>
- </item>
- </section>
- <section>
- <item>
<attribute name="label" translatable="yes">_Print</attribute>
<attribute name="action">app.print</attribute>
</item>
diff --git a/data/gnome-sudoku.ui b/data/gnome-sudoku.ui
index 9f82702..74fe4a4 100644
--- a/data/gnome-sudoku.ui
+++ b/data/gnome-sudoku.ui
@@ -32,21 +32,6 @@
</child>
</object>
</child>
- <child>
- <object class="GtkButton" id="undo_button">
- <property name="label" translatable="yes">Undo</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="focus_on_click">False</property>
- <property name="use_action_appearance">False</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
</object> <!-- End of controls_box -->
<packing>
<property name="expand">False</property>
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index db59ded..ca6a459 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -77,11 +77,6 @@ public class Sudoku : Gtk.Application
grid_box = (Box) builder.get_object ("grid_box");
controls_box = (Box) builder.get_object ("number_picker_box");
- var undo_button = (Button) builder.get_object ("undo_button");
- undo_button.clicked.connect (() => {
- undo_cb();
- });
-
sudoku_store = new SudokuStore ();
saver = new SudokuSaver ();
//SudokuGenerator gen = new SudokuGenerator();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]