[latexila] Don't use some GtkStocks
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Don't use some GtkStocks
- Date: Fri, 26 Dec 2014 21:13:36 +0000 (UTC)
commit aebd86f3db266fad848832c3dedb03882df50c66
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Dec 26 21:22:57 2014 +0100
Don't use some GtkStocks
src/build_tool_dialog.vala | 8 ++++----
src/build_tools_preferences.vala | 6 +++---
src/clean_build_files.vala | 4 ++--
src/dialogs.vala | 6 +++---
src/document.vala | 4 ++--
src/document_tab.vala | 4 ++--
6 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/src/build_tool_dialog.vala b/src/build_tool_dialog.vala
index d07cf81..ffc0c40 100644
--- a/src/build_tool_dialog.vala
+++ b/src/build_tool_dialog.vala
@@ -77,14 +77,14 @@ public class BuildToolDialog : GLib.Object
private void set_read_only ()
{
- _dialog.add_button (Stock.CLOSE, ResponseType.CANCEL);
+ _dialog.add_button (_("_Close"), ResponseType.CANCEL);
_dialog.title = _("Build Tool (read-only)");
}
private void set_editable ()
{
- _dialog.add_button (Stock.CANCEL, ResponseType.CANCEL);
- _dialog.add_button (Stock.OK, ResponseType.OK);
+ _dialog.add_button (_("_Cancel"), ResponseType.CANCEL);
+ _dialog.add_button (_("_OK"), ResponseType.OK);
_dialog.title = _("Build Tool");
}
@@ -162,7 +162,7 @@ public class BuildToolDialog : GLib.Object
add_icon ("compile_dvi", "LaTeX → DVI");
add_icon ("compile_pdf", "LaTeX → PDF");
add_icon ("compile_ps", "LaTeX → PS");
- add_icon (Stock.CONVERT, _("Convert"));
+ add_icon (Stock.CONVERT, _("Convert")); // FIXME don't use Stock
add_icon ("text-x-generic", _("View File"));
add_icon ("view_dvi", _("View DVI"));
add_icon ("view_pdf", _("View PDF"));
diff --git a/src/build_tools_preferences.vala b/src/build_tools_preferences.vala
index e252f1c..1b8b83a 100644
--- a/src/build_tools_preferences.vala
+++ b/src/build_tools_preferences.vala
@@ -52,7 +52,7 @@ public class BuildToolsPreferences : GLib.Object
_dialog = new Dialog.with_buttons (_("Build Tools"), main_window,
DialogFlags.DESTROY_WITH_PARENT,
- Stock.CLOSE, ResponseType.ACCEPT);
+ _("_Close"), ResponseType.ACCEPT);
Grid hgrid = new Grid ();
hgrid.set_orientation (Orientation.HORIZONTAL);
@@ -330,8 +330,8 @@ public class BuildToolsPreferences : GLib.Object
_("Do you really want to delete the build tool \"%s\"?"),
label);
- dialog.add_buttons (Stock.CANCEL, ResponseType.CANCEL,
- Stock.DELETE, ResponseType.YES);
+ dialog.add_buttons (_("_Cancel"), ResponseType.CANCEL,
+ _("_Delete"), ResponseType.YES);
if (dialog.run () == ResponseType.YES)
{
diff --git a/src/clean_build_files.vala b/src/clean_build_files.vala
index 4df4a37..e2bc2ab 100644
--- a/src/clean_build_files.vala
+++ b/src/clean_build_files.vala
@@ -239,8 +239,8 @@ public class CleanBuildFiles : GLib.Object
Dialog dialog = new Dialog.with_buttons (null,
_main_window,
DialogFlags.DESTROY_WITH_PARENT,
- Stock.CANCEL, ResponseType.CANCEL,
- Stock.DELETE, ResponseType.ACCEPT
+ _("_Cancel"), ResponseType.CANCEL,
+ _("_Delete"), ResponseType.ACCEPT
);
Grid grid = new Grid ();
diff --git a/src/dialogs.vala b/src/dialogs.vala
index d935cda..c7a22ee 100644
--- a/src/dialogs.vala
+++ b/src/dialogs.vala
@@ -37,9 +37,9 @@ namespace Dialogs
Dialog dialog = new Dialog.with_buttons (null,
window,
DialogFlags.DESTROY_WITH_PARENT,
- _("Close without Saving"), ResponseType.CLOSE,
- Stock.CANCEL, ResponseType.CANCEL,
- Stock.SAVE, ResponseType.ACCEPT,
+ _("Close _without Saving"), ResponseType.CLOSE,
+ _("_Cancel"), ResponseType.CANCEL,
+ _("_Save"), ResponseType.ACCEPT,
null);
Grid grid = new Grid ();
diff --git a/src/document.vala b/src/document.vala
index be77918..42e4fff 100644
--- a/src/document.vala
+++ b/src/document.vala
@@ -576,8 +576,8 @@ public class Document : Gtk.SourceBuffer
_("Do you want to save the file in a safer place?"),
MessageType.WARNING);
- infobar.add_button (Stock.SAVE_AS, ResponseType.YES);
- infobar.add_button (Stock.CANCEL, ResponseType.NO);
+ infobar.add_button (_("Save _As"), ResponseType.YES);
+ infobar.add_button (_("Cancel"), ResponseType.NO);
infobar.response.connect ((response_id) =>
{
diff --git a/src/document_tab.vala b/src/document_tab.vala
index cbf3324..38c9e4c 100644
--- a/src/document_tab.vala
+++ b/src/document_tab.vala
@@ -286,8 +286,8 @@ public class DocumentTab : Grid
TabInfoBar infobar = add_message (primary_msg, secondary_msg,
MessageType.WARNING);
- infobar.add_button_with_text (_("Reload"), "view-refresh", ResponseType.OK);
- infobar.add_button (Stock.CANCEL, ResponseType.CANCEL);
+ infobar.add_button_with_text (_("_Reload"), "view-refresh", ResponseType.OK);
+ infobar.add_button (_("_Cancel"), ResponseType.CANCEL);
infobar.response.connect ((response_id) =>
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]