[latexila] Side panel: use icon-name instead of stock-id
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Side panel: use icon-name instead of stock-id
- Date: Wed, 24 Dec 2014 20:28:53 +0000 (UTC)
commit 83e68c0dc53a8e06a338463f5d2305b76856e521
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Dec 24 21:20:15 2014 +0100
Side panel: use icon-name instead of stock-id
src/main_window.vala | 2 +-
src/side_panel.vala | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/main_window.vala b/src/main_window.vala
index 5e2e277..013f6d9 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -404,7 +404,7 @@ public class MainWindow : Window
// File browser
FileBrowser file_browser = new FileBrowser (this);
- side_panel.add_component (_("File Browser"), Stock.OPEN, file_browser);
+ side_panel.add_component (_("File Browser"), "document-open", file_browser);
// Structure
Structure structure = new Structure (this);
diff --git a/src/side_panel.vala b/src/side_panel.vala
index 970ff3c..3696c89 100644
--- a/src/side_panel.vala
+++ b/src/side_panel.vala
@@ -55,7 +55,7 @@ public class SidePanel : Grid
private void init_combo_box ()
{
_list_store = new ListStore (SidePanelColumn.N_COLUMNS,
- typeof (string), // pixbuf (stock-id)
+ typeof (string), // pixbuf (icon-name)
typeof (string) // name
);
@@ -65,7 +65,7 @@ public class SidePanel : Grid
CellRendererPixbuf pixbuf_renderer = new CellRendererPixbuf ();
_combo_box.pack_start (pixbuf_renderer, false);
_combo_box.set_attributes (pixbuf_renderer,
- "stock-id", SidePanelColumn.PIXBUF, null);
+ "icon-name", SidePanelColumn.PIXBUF, null);
CellRendererText text_renderer = new CellRendererText ();
text_renderer.ellipsize_set = true;
@@ -90,12 +90,12 @@ public class SidePanel : Grid
return close_button;
}
- public void add_component (string name, string stock_id, Grid component)
+ public void add_component (string name, string icon_name, Grid component)
{
TreeIter iter;
_list_store.append (out iter);
_list_store.set (iter,
- SidePanelColumn.PIXBUF, stock_id,
+ SidePanelColumn.PIXBUF, icon_name,
SidePanelColumn.NAME, name);
_components.add (component);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]