Gtk.ActionGroup is deprecated. Replaced with a GLib.SimpleAction (GIO).

This commit is contained in:
Kolan Sh 2017-07-06 20:55:02 +03:00
parent 8537b69ea6
commit 1a7851725c
2 changed files with 88 additions and 166 deletions

View File

@ -31,6 +31,42 @@ namespace LAview.Desktop {
window.title = _("LAview Desktop") window.title = _("LAview Desktop")
+ @" $(Config.VERSION_MAJOR).$(Config.VERSION_MINOR).$(Config.VERSION_PATCH)"; + @" $(Config.VERSION_MAJOR).$(Config.VERSION_MINOR).$(Config.VERSION_PATCH)";
/* actions */
var new_action = new SimpleAction ("new", null);
new_action.activate.connect (new_callback);
application.add_action (new_action);
var open_action = new SimpleAction ("open", null);
open_action.activate.connect (open_callback);
application.add_action (open_action);
var edit_action = new SimpleAction ("edit", null);
edit_action.activate.connect (edit_callback);
application.add_action (edit_action);
var delete_action = new SimpleAction ("delete", null);
delete_action.activate.connect (delete_callback);
application.add_action (delete_action);
var compose_action = new SimpleAction ("compose", null);
compose_action.activate.connect (compose_callback);
application.add_action (compose_action);
var print_action = new SimpleAction ("print", null);
print_action.activate.connect (print_callback);
application.add_action (print_action);
var edit_result_action = new SimpleAction ("edit_result", null);
edit_result_action.activate.connect (edit_result_callback);
application.add_action (edit_result_action);
var saveas_action = new SimpleAction ("saveas", null);
saveas_action.activate.connect (saveas_callback);
application.add_action (saveas_action);
var quit_action = new SimpleAction ("quit", null);
quit_action.activate.connect (quit_callback);
application.add_action (quit_action);
var ref_action = new SimpleAction ("ref", null);
ref_action.activate.connect (ref_callback);
application.add_action (ref_action);
var preferences_action = new SimpleAction ("preferences", null);
preferences_action.activate.connect (preferences_callback);
application.add_action (preferences_action);
pref_dialog = new PreferencesDialog (application, window); pref_dialog = new PreferencesDialog (application, window);
subprocess_dialog = new SubprocessDialog (application, window); subprocess_dialog = new SubprocessDialog (application, window);
about_dialog = new AboutDialogWindow (application, window); about_dialog = new AboutDialogWindow (application, window);
@ -83,8 +119,7 @@ namespace LAview.Desktop {
about_dialog.show_all (); about_dialog.show_all ();
} }
[CCode (instance_pos = -1)] void new_callback (SimpleAction action, Variant? parameter) {
public void action_new_activate (Gtk.Action action) {
string[] argv = { AppCore.core.lyx_path, "--execute", "buffer-new" }; string[] argv = { AppCore.core.lyx_path, "--execute", "buffer-new" };
try { try {
var subprocess = new SubprocessLauncher( SubprocessFlags.STDIN_PIPE var subprocess = new SubprocessLauncher( SubprocessFlags.STDIN_PIPE
@ -99,8 +134,7 @@ namespace LAview.Desktop {
} }
} }
[CCode (instance_pos = -1)] void open_callback (SimpleAction action, Variant? parameter) {
public void action_open_activate (Gtk.Action action) {
FileChooserDialog chooser = new Gtk.FileChooserDialog (_("Select templates"), window, FileChooserDialog chooser = new Gtk.FileChooserDialog (_("Select templates"), window,
FileChooserAction.OPEN, FileChooserAction.OPEN,
_("_Cancel"), ResponseType.CANCEL, _("_Cancel"), ResponseType.CANCEL,
@ -152,13 +186,11 @@ namespace LAview.Desktop {
return indices; return indices;
} }
[CCode (instance_pos = -1)] void edit_callback (SimpleAction action, Variant? parameter) {
public void action_edit_template_activate (Gtk.Action action) {
edit_selected_templates (); edit_selected_templates ();
} }
[CCode (instance_pos = -1)] void delete_callback (SimpleAction action, Variant? parameter) {
public void action_delete_activate (Gtk.Action action) {
var indices = get_template_indices (); var indices = get_template_indices ();
for (int i = indices.length; i > 0; ) for (int i = indices.length; i > 0; )
AppCore.core.remove_template (indices[--i]); AppCore.core.remove_template (indices[--i]);
@ -201,8 +233,7 @@ namespace LAview.Desktop {
} }
} }
[CCode (instance_pos = -1)] void compose_callback (SimpleAction action, Variant? parameter) {
public void action_compose_activate (Gtk.Action action) {
compose_object(); compose_object();
} }
@ -213,8 +244,7 @@ namespace LAview.Desktop {
compose_object(); compose_object();
} }
[CCode (instance_pos = -1)] void edit_result_callback (SimpleAction action, Variant? parameter) {
public void action_edit_result_activate (Gtk.Action action) {
try { try {
if (get_template_indices().length != 0) { if (get_template_indices().length != 0) {
var lyx_path = AppCore.core.get_lyx_file_path (); var lyx_path = AppCore.core.get_lyx_file_path ();
@ -239,8 +269,7 @@ namespace LAview.Desktop {
} }
} }
[CCode (instance_pos = -1)] void print_callback (SimpleAction action, Variant? parameter) {
public void action_print_activate (Gtk.Action action) {
if (get_template_indices().length != 0) { if (get_template_indices().length != 0) {
try { try {
subprocess_dialog.show_all (AppCore.core.print_document (), subprocess_dialog.show_all (AppCore.core.print_document (),
@ -255,13 +284,11 @@ namespace LAview.Desktop {
} }
} }
[CCode (instance_pos = -1)] void preferences_callback (SimpleAction action, Variant? parameter) {
public void action_preferences_activate (Gtk.Action action) {
pref_dialog.show_all (); pref_dialog.show_all ();
} }
[CCode (instance_pos = -1)] void ref_callback (SimpleAction action, Variant? parameter) {
public void action_ref_activate (Gtk.Action action) {
try { try {
show_uri (null, "https://redmine.backbone.ws/projects/laview/wiki", Gdk.CURRENT_TIME); show_uri (null, "https://redmine.backbone.ws/projects/laview/wiki", Gdk.CURRENT_TIME);
} catch (Error err) { } catch (Error err) {
@ -323,8 +350,7 @@ namespace LAview.Desktop {
statusbar_show (_("Press 'Properties' button to compose the object.")); statusbar_show (_("Press 'Properties' button to compose the object."));
} }
[CCode (instance_pos = -1)] void saveas_callback (SimpleAction action, Variant? parameter) {
public void action_saveas_activate (Gtk.Action action) {
var indices = get_template_indices (); var indices = get_template_indices ();
if (indices.length == 0) return; if (indices.length == 0) return;
string tmp_pdf = ""; string tmp_pdf = "";
@ -386,8 +412,7 @@ namespace LAview.Desktop {
chooser.close (); chooser.close ();
} }
[CCode (instance_pos = -1)] void quit_callback (SimpleAction action, Variant? parameter) {
public void action_quit_activate (Gtk.Action action) {
window.destroy(); window.destroy();
} }

View File

@ -38,87 +38,6 @@
</object> </object>
</child> </child>
</object> </object>
<object class="GtkActionGroup" id="actiongroup_main">
<child>
<object class="GtkAction" id="action_new">
<property name="stock_id">gtk-new</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_new_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkAction" id="action_open">
<property name="stock_id">gtk-open</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_open_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkAction" id="action_edit_template">
<property name="label" translatable="yes">_Template</property>
<property name="stock_id">gtk-edit</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_edit_template_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkAction" id="action_delete">
<property name="stock_id">gtk-delete</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_delete_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkAction" id="action_prepare">
<property name="stock_id">gtk-properties</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_compose_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkAction" id="action_print">
<property name="stock_id">gtk-print</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_print_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkAction" id="action_ref">
<property name="stock_id">gtk-help</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_ref_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkAction" id="action_preferences">
<property name="stock_id">gtk-preferences</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_preferences_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkAction" id="action_edit_result">
<property name="label" translatable="yes">_Document</property>
<property name="stock_id">gtk-edit</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_edit_result_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkAction" id="action_saveas">
<property name="stock_id">gtk-save</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_saveas_activate" swapped="no"/>
</object>
</child>
<child>
<object class="GtkAction" id="action_quit">
<property name="stock_id">gtk-quit</property>
<property name="always_show_image">True</property>
<signal name="activate" handler="laview_desktop_main_window_action_quit_activate" swapped="no"/>
</object>
</child>
</object>
<object class="GtkFileFilter" id="filefilter_open"> <object class="GtkFileFilter" id="filefilter_open">
<patterns> <patterns>
<pattern>*.lyx</pattern> <pattern>*.lyx</pattern>
@ -534,10 +453,9 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_new"> <object class="GtkImageMenuItem" id="menuitem_new">
<property name="label">gtk-new</property> <property name="label">gtk-new</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_new</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="action_name">app.new</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -547,10 +465,9 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_open"> <object class="GtkImageMenuItem" id="menuitem_open">
<property name="label">gtk-open</property> <property name="label">gtk-open</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_open</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="action_name">app.open</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -560,10 +477,9 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_edit_template"> <object class="GtkImageMenuItem" id="menuitem_edit_template">
<property name="label">gtk-edit</property> <property name="label">gtk-edit</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_edit_template</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="action_name">app.edit</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -573,10 +489,9 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_delete"> <object class="GtkImageMenuItem" id="menuitem_delete">
<property name="label">gtk-delete</property> <property name="label">gtk-delete</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_delete</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="action_name">app.delete</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -585,7 +500,6 @@
</child> </child>
<child> <child>
<object class="GtkSeparatorMenuItem" id="menuitem_separator"> <object class="GtkSeparatorMenuItem" id="menuitem_separator">
<property name="use_action_appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
</object> </object>
@ -593,10 +507,9 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_quit"> <object class="GtkImageMenuItem" id="menuitem_quit">
<property name="label">gtk-quit</property> <property name="label">gtk-quit</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_quit</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="action_name">app.quit</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -620,11 +533,10 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_prepare"> <object class="GtkImageMenuItem" id="menuitem_prepare">
<property name="label">gtk-properties</property> <property name="label">gtk-properties</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_prepare</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="opacity">0.97999999999999998</property> <property name="opacity">0.97999999999999998</property>
<property name="action_name">app.compose</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -634,10 +546,9 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_print"> <object class="GtkImageMenuItem" id="menuitem_print">
<property name="label">gtk-print</property> <property name="label">gtk-print</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_print</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="action_name">app.print</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -647,10 +558,9 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_edit_result"> <object class="GtkImageMenuItem" id="menuitem_edit_result">
<property name="label">gtk-edit</property> <property name="label">gtk-edit</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_edit_result</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="action_name">app.edit_result</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -659,10 +569,9 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_saveas"> <object class="GtkImageMenuItem" id="menuitem_saveas">
<property name="label">gtk-save</property> <property name="label">gtk-save</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_saveas</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="action_name">app.saveas</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -686,10 +595,9 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_preferences"> <object class="GtkImageMenuItem" id="menuitem_preferences">
<property name="label">gtk-preferences</property> <property name="label">gtk-preferences</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_preferences</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="action_name">app.preferences</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -712,10 +620,9 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_ref"> <object class="GtkImageMenuItem" id="menuitem_ref">
<property name="label">gtk-help</property> <property name="label">gtk-help</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_ref</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="action_name">app.ref</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
@ -726,7 +633,6 @@
<child> <child>
<object class="GtkImageMenuItem" id="menuitem_about"> <object class="GtkImageMenuItem" id="menuitem_about">
<property name="label">gtk-about</property> <property name="label">gtk-about</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
@ -753,11 +659,11 @@
<property name="toolbar_style">both</property> <property name="toolbar_style">both</property>
<child> <child>
<object class="GtkToolButton" id="toolbutton_new"> <object class="GtkToolButton" id="toolbutton_new">
<property name="use_action_appearance">True</property>
<property name="related_action">action_new</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Create a new template</property> <property name="tooltip_text" translatable="yes">Create a new template</property>
<property name="is_important">True</property>
<property name="action_name">app.new</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-new</property> <property name="stock_id">gtk-new</property>
</object> </object>
@ -768,11 +674,11 @@
</child> </child>
<child> <child>
<object class="GtkToolButton" id="toolbutton_open"> <object class="GtkToolButton" id="toolbutton_open">
<property name="use_action_appearance">True</property>
<property name="related_action">action_open</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Open a template</property> <property name="tooltip_text" translatable="yes">Open a template</property>
<property name="is_important">True</property>
<property name="action_name">app.open</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-open</property> <property name="stock_id">gtk-open</property>
</object> </object>
@ -783,11 +689,11 @@
</child> </child>
<child> <child>
<object class="GtkToolButton" id="toolbutton_edit_template"> <object class="GtkToolButton" id="toolbutton_edit_template">
<property name="use_action_appearance">True</property>
<property name="related_action">action_edit_template</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Change selected template</property> <property name="tooltip_text" translatable="yes">Change selected template</property>
<property name="is_important">True</property>
<property name="action_name">app.edit</property>
<property name="label" translatable="yes">_Template</property> <property name="label" translatable="yes">_Template</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-edit</property> <property name="stock_id">gtk-edit</property>
@ -799,11 +705,11 @@
</child> </child>
<child> <child>
<object class="GtkToolButton" id="toolbutton_delete"> <object class="GtkToolButton" id="toolbutton_delete">
<property name="use_action_appearance">True</property>
<property name="related_action">action_delete</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Delete selected template</property> <property name="tooltip_text" translatable="yes">Delete selected template</property>
<property name="is_important">True</property>
<property name="action_name">app.delete</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-delete</property> <property name="stock_id">gtk-delete</property>
</object> </object>
@ -824,11 +730,11 @@
</child> </child>
<child> <child>
<object class="GtkToolButton" id="toolbutton_prepare"> <object class="GtkToolButton" id="toolbutton_prepare">
<property name="use_action_appearance">True</property>
<property name="related_action">action_prepare</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Document object preparing</property> <property name="tooltip_text" translatable="yes">Document object preparing</property>
<property name="is_important">True</property>
<property name="action_name">app.compose</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-properties</property> <property name="stock_id">gtk-properties</property>
</object> </object>
@ -839,11 +745,11 @@
</child> </child>
<child> <child>
<object class="GtkToolButton" id="toolbutton_print"> <object class="GtkToolButton" id="toolbutton_print">
<property name="use_action_appearance">True</property>
<property name="related_action">action_print</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">View and print the document</property> <property name="tooltip_text" translatable="yes">View and print the document</property>
<property name="is_important">True</property>
<property name="action_name">app.print</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-print</property> <property name="stock_id">gtk-print</property>
</object> </object>
@ -854,11 +760,11 @@
</child> </child>
<child> <child>
<object class="GtkToolButton" id="toolbutton_edit_result"> <object class="GtkToolButton" id="toolbutton_edit_result">
<property name="use_action_appearance">True</property>
<property name="related_action">action_edit_result</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Edit the result document</property> <property name="tooltip_text" translatable="yes">Edit the result document</property>
<property name="is_important">True</property>
<property name="action_name">app.edit_result</property>
<property name="label" translatable="yes">_Document</property> <property name="label" translatable="yes">_Document</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-edit</property> <property name="stock_id">gtk-edit</property>
@ -870,11 +776,11 @@
</child> </child>
<child> <child>
<object class="GtkToolButton" id="toolbutton_saveas"> <object class="GtkToolButton" id="toolbutton_saveas">
<property name="use_action_appearance">True</property>
<property name="related_action">action_saveas</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Save the document as...</property> <property name="tooltip_text" translatable="yes">Save the document as...</property>
<property name="is_important">True</property>
<property name="action_name">app.saveas</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-save</property> <property name="stock_id">gtk-save</property>
</object> </object>
@ -895,11 +801,11 @@
</child> </child>
<child> <child>
<object class="GtkToolButton" id="toolbutton_preferences"> <object class="GtkToolButton" id="toolbutton_preferences">
<property name="use_action_appearance">True</property>
<property name="related_action">action_preferences</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Application preferences</property> <property name="tooltip_text" translatable="yes">Application preferences</property>
<property name="is_important">True</property>
<property name="action_name">app.preferences</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-preferences</property> <property name="stock_id">gtk-preferences</property>
</object> </object>
@ -910,11 +816,11 @@
</child> </child>
<child> <child>
<object class="GtkToolButton" id="toolbutton_ref"> <object class="GtkToolButton" id="toolbutton_ref">
<property name="use_action_appearance">True</property>
<property name="related_action">action_ref</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Help and reference</property> <property name="tooltip_text" translatable="yes">Help and reference</property>
<property name="is_important">True</property>
<property name="action_name">app.ref</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-help</property> <property name="stock_id">gtk-help</property>
</object> </object>
@ -935,11 +841,11 @@
</child> </child>
<child> <child>
<object class="GtkToolButton" id="toolbutton_quit"> <object class="GtkToolButton" id="toolbutton_quit">
<property name="use_action_appearance">True</property>
<property name="related_action">action_quit</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Close the application</property> <property name="tooltip_text" translatable="yes">Close the application</property>
<property name="is_important">True</property>
<property name="action_name">app.quit</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="stock_id">gtk-quit</property> <property name="stock_id">gtk-quit</property>
</object> </object>
@ -1014,11 +920,10 @@
<child> <child>
<object class="GtkButton" id="button_new"> <object class="GtkButton" id="button_new">
<property name="label">gtk-new</property> <property name="label">gtk-new</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_new</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
<property name="action_name">app.new</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
</object> </object>
@ -1031,11 +936,10 @@
<child> <child>
<object class="GtkButton" id="button_open"> <object class="GtkButton" id="button_open">
<property name="label">gtk-open</property> <property name="label">gtk-open</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_open</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
<property name="action_name">app.open</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
</object> </object>
@ -1048,11 +952,10 @@
<child> <child>
<object class="GtkButton" id="button_edit_template"> <object class="GtkButton" id="button_edit_template">
<property name="label">gtk-edit</property> <property name="label">gtk-edit</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_edit_template</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
<property name="action_name">app.edit</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
</object> </object>
@ -1065,12 +968,11 @@
<child> <child>
<object class="GtkButton" id="button_delete"> <object class="GtkButton" id="button_delete">
<property name="label">gtk-delete</property> <property name="label">gtk-delete</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_delete</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
<property name="resize_mode">immediate</property> <property name="resize_mode">immediate</property>
<property name="action_name">app.delete</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
</object> </object>
@ -1145,14 +1047,12 @@
<child> <child>
<object class="GtkButton" id="button_prepare"> <object class="GtkButton" id="button_prepare">
<property name="label">gtk-properties</property> <property name="label">gtk-properties</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_prepare</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
<property name="action_name">app.compose</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="yalign">0.44999998807907104</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
</object> </object>
<packing> <packing>
@ -1164,11 +1064,10 @@
<child> <child>
<object class="GtkButton" id="button_print"> <object class="GtkButton" id="button_print">
<property name="label">gtk-print</property> <property name="label">gtk-print</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_print</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
<property name="action_name">app.print</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
</object> </object>
@ -1181,11 +1080,10 @@
<child> <child>
<object class="GtkButton" id="button_edit_result"> <object class="GtkButton" id="button_edit_result">
<property name="label">gtk-edit</property> <property name="label">gtk-edit</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_edit_result</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
<property name="action_name">app.edit_result</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
</object> </object>
@ -1198,11 +1096,10 @@
<child> <child>
<object class="GtkButton" id="button_saveas"> <object class="GtkButton" id="button_saveas">
<property name="label">gtk-save</property> <property name="label">gtk-save</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action_saveas</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
<property name="action_name">app.saveas</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
<property name="always_show_image">True</property> <property name="always_show_image">True</property>
</object> </object>