<column type="gchararray"/>
</columns>
</object>
- <object class="GtkApplicationWindow" id="main_window">
+ <object class="GtkWindow" id="main_window">
<property name="can_focus">False</property>
<property name="title" translatable="yes">Wordblox Player</property>
<property name="default_width">540</property>
<property name="default_height">400</property>
- <signal name="destroy" handler="gtk_main_quit" swapped="no"/>
+ <signal name="destroy" handler="on_menu_exit_activate" swapped="no"/>
<child type="titlebar">
<placeholder/>
</child>
<property name="can_focus">False</property>
<property name="label" translatable="yes">_Open...</property>
<property name="use_underline">True</property>
- <signal name="activate" handler="on_menu_open_activate" swapped="no"/>
+ <signal name="activate" handler="on_menu_open_activate" object="puzzle_area" swapped="no"/>
</object>
</child>
<child>
- <object class="GtkMenuItem" id="menu_save">
+ <object class="GtkMenuItem" id="menu_save_grid_state">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">_Save Grid State...</property>
<property name="use_underline">True</property>
- <signal name="activate" handler="on_menu_save_activate" swapped="no"/>
+ <signal name="activate" handler="on_menu_save_grid_state_activate" swapped="no"/>
</object>
</child>
<child>
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GtkMenuItem" id="menu_view_answers">
+ <object class="GtkMenuItem" id="menu_reveal_solution">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">_Reveal Solution...</property>
<property name="use_underline">True</property>
- <signal name="activate" handler="on_menu_view_answers_activate" swapped="no"/>
+ <signal name="activate" handler="on_menu_reveal_solution_activate" swapped="no"/>
</object>
</child>
</object>
<property name="can_focus">True</property>
<child>
<object class="GtkScrolledWindow">
- <property name="width_request">70</property>
+ <property name="width_request">80</property>
+ <property name="height_request">80</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="shadow_type">in</property>
+ <child>
+ <object class="GtkViewport">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hscroll_policy">natural</property>
+ <property name="vscroll_policy">natural</property>
+ <child>
+ <object class="GtkDrawingArea" id="puzzle_area">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="has_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
+ <signal name="button-press-event" handler="on_puzzle_area_button_press_event" swapped="no"/>
+ <signal name="draw" handler="on_puzzle_area_draw" swapped="no"/>
+ <signal name="key-press-event" handler="on_puzzle_area_key_press_event" swapped="no"/>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
<packing>
<property name="resize">True</property>
<child>
<object class="GtkPaned">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="can_focus">False</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="list_across_clues">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="can_focus">False</property>
<property name="model">store_across_clues</property>
<property name="enable_search">False</property>
<property name="search_column">0</property>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
</child>
+ <child>
+ <object class="GtkTreeViewColumn" id="id">
+ <property name="resizable">True</property>
+ <property name="title" translatable="yes">Id</property>
+ <child>
+ <object class="GtkCellRendererText"/>
+ <attributes>
+ <attribute name="text">0</attribute>
+ </attributes>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkTreeViewColumn" id="ClueAcross">
+ <property name="resizable">True</property>
+ <property name="title" translatable="yes">Clues Across</property>
+ <child>
+ <object class="GtkCellRendererText"/>
+ <attributes>
+ <attribute name="text">1</attribute>
+ <attribute name="placeholder-text">1</attribute>
+ </attributes>
+ </child>
+ </object>
+ </child>
</object>
</child>
</object>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="can_focus">False</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="list_down_clues">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <property name="can_focus">False</property>
<property name="model">store_down_clues</property>
+ <property name="enable_search">False</property>
<property name="search_column">0</property>
+ <property name="show_expanders">False</property>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
</child>
+ <child>
+ <object class="GtkTreeViewColumn" id="ID">
+ <property name="resizable">True</property>
+ <property name="title" translatable="yes">Id</property>
+ <child>
+ <object class="GtkCellRendererText"/>
+ <attributes>
+ <attribute name="text">0</attribute>
+ </attributes>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkTreeViewColumn" id="ClueDown">
+ <property name="resizable">True</property>
+ <property name="title" translatable="yes">Clues Down</property>
+ <child>
+ <object class="GtkCellRendererText"/>
+ <attributes>
+ <attribute name="text">1</attribute>
+ </attributes>
+ </child>
+ </object>
+ </child>
</object>
</child>
</object>