[latexila] FileBrowser: don't use ToolButton.from_stock()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] FileBrowser: don't use ToolButton.from_stock()
- Date: Fri, 26 Dec 2014 21:13:46 +0000 (UTC)
commit 90bc6a9e20f04d70e9c6bf0bf1a9ee84e81742bb
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Dec 26 21:47:27 2014 +0100
FileBrowser: don't use ToolButton.from_stock()
src/file_browser.vala | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/file_browser.vala b/src/file_browser.vala
index 5c9ecc0..f92e56b 100644
--- a/src/file_browser.vala
+++ b/src/file_browser.vala
@@ -212,9 +212,9 @@ public class FileBrowser : Grid
private ToolButton get_home_button ()
{
- ToolButton home_button = new ToolButton.from_stock (Stock.HOME);
+ ToolButton home_button = new ToolButton (null, null);
+ home_button.icon_name = "go-home";
home_button.tooltip_text = _("Go to the home directory");
- home_button.label = home_button.tooltip_text;
home_button.clicked.connect (() =>
{
@@ -227,9 +227,9 @@ public class FileBrowser : Grid
private ToolButton get_parent_button ()
{
- _parent_button = new ToolButton.from_stock (Stock.GO_UP);
+ _parent_button = new ToolButton (null, null);
+ _parent_button.icon_name = "go-up";
_parent_button.tooltip_text = _("Go to the parent directory");
- _parent_button.label = _parent_button.tooltip_text;
_parent_button.clicked.connect (() =>
{
@@ -243,9 +243,9 @@ public class FileBrowser : Grid
private ToolButton get_jump_button ()
{
- ToolButton jump_button = new ToolButton.from_stock (Stock.JUMP_TO);
+ ToolButton jump_button = new ToolButton (null, null);
+ jump_button.icon_name = "go-jump";
jump_button.tooltip_text = _("Go to the active document directory");
- jump_button.label = jump_button.tooltip_text;
jump_button.clicked.connect (() =>
{
@@ -300,7 +300,8 @@ public class FileBrowser : Grid
/* Tool button */
- ToolButton button = new ToolButton.from_stock (Stock.PROPERTIES);
+ ToolButton button = new ToolButton (null, null);
+ button.icon_name = "document-properties";
button.clicked.connect (() =>
{
@@ -574,8 +575,7 @@ public class FileBrowser : Grid
switch (file_extension)
{
case ".tex":
- // TODO find a replacement
- return Stock.EDIT;
+ return Stock.EDIT; // TODO find a replacement
case ".pdf":
return "view_pdf";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]