[latexila] TabInfoBar: don't use icons
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] TabInfoBar: don't use icons
- Date: Fri, 26 Dec 2014 21:13:41 +0000 (UTC)
commit a144e8af49d5bc10e66674f08108e7747a107d51
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Dec 26 21:35:25 2014 +0100
TabInfoBar: don't use icons
src/document.vala | 5 ++---
src/document_tab.vala | 2 +-
src/tab_info_bar.vala | 7 -------
3 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/src/document.vala b/src/document.vala
index 42e4fff..0fa20d7 100644
--- a/src/document.vala
+++ b/src/document.vala
@@ -200,9 +200,8 @@ public class Document : Gtk.SourceBuffer
_("If you save it, all the external changes could be lost. Save it anyway?");
TabInfoBar infobar = tab.add_message (primary_msg, secondary_msg,
MessageType.WARNING);
- infobar.add_button_with_text (_("Save Anyway"), "document-save",
- ResponseType.YES);
- infobar.add_button (_("Don't Save"), ResponseType.CANCEL);
+ infobar.add_button (_("_Save Anyway"), ResponseType.YES);
+ infobar.add_button (_("_Don't Save"), ResponseType.CANCEL);
infobar.response.connect ((response_id) =>
{
if (response_id == ResponseType.YES)
diff --git a/src/document_tab.vala b/src/document_tab.vala
index 38c9e4c..7f37064 100644
--- a/src/document_tab.vala
+++ b/src/document_tab.vala
@@ -286,7 +286,7 @@ 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 (_("_Reload"), ResponseType.OK);
infobar.add_button (_("_Cancel"), ResponseType.CANCEL);
infobar.response.connect ((response_id) =>
diff --git a/src/tab_info_bar.vala b/src/tab_info_bar.vala
index 48f8689..b4747fc 100644
--- a/src/tab_info_bar.vala
+++ b/src/tab_info_bar.vala
@@ -81,11 +81,4 @@ public class TabInfoBar : InfoBar
destroy ();
});
}
-
- public void add_button_with_text (string text, string icon_name, int response_id)
- {
- Button button = add_button (text, response_id) as Button;
- Image image = new Image.from_icon_name (icon_name, IconSize.BUTTON);
- button.set_image (image);
- }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]