[latexila/gnome-3] File browser: remove indentation inside the combo box
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/gnome-3] File browser: remove indentation inside the combo box
- Date: Thu, 29 Mar 2012 22:55:29 +0000 (UTC)
commit 47167dd14cce4242dd0ae1db63aece539460f9d6
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Fri Mar 30 00:56:26 2012 +0200
File browser: remove indentation inside the combo box
Because it's broken in GTK+ 3 (but it would be nice to find a solution).
src/file_browser.vala | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/file_browser.vala b/src/file_browser.vala
index 8ab7a77..49c6bd1 100644
--- a/src/file_browser.vala
+++ b/src/file_browser.vala
@@ -23,7 +23,6 @@ public class FileBrowser : Grid
{
private enum ParentDirColumn
{
- INDENT,
PIXBUF,
NAME,
FILE,
@@ -164,7 +163,6 @@ public class FileBrowser : Grid
private void init_combo_box ()
{
_parent_dir_store = new ListStore (ParentDirColumn.N_COLUMNS,
- typeof (string), // indentation (spaces)
typeof (string), // pixbuf (stock-id)
typeof (string), // directory name
typeof (File));
@@ -172,11 +170,6 @@ public class FileBrowser : Grid
_combo_box = new ComboBox.with_model (_parent_dir_store);
add (_combo_box);
- // indentation
- CellRendererText text_renderer = new CellRendererText ();
- _combo_box.pack_start (text_renderer, false);
- _combo_box.set_attributes (text_renderer, "text", ParentDirColumn.INDENT, null);
-
// pixbuf
CellRendererPixbuf pixbuf_renderer = new CellRendererPixbuf ();
_combo_box.pack_start (pixbuf_renderer, false);
@@ -184,7 +177,7 @@ public class FileBrowser : Grid
"stock-id", ParentDirColumn.PIXBUF, null);
// directory name
- text_renderer = new CellRendererText ();
+ CellRendererText text_renderer = new CellRendererText ();
_combo_box.pack_start (text_renderer, true);
_combo_box.set_attributes (text_renderer, "text", ParentDirColumn.NAME, null);
text_renderer.ellipsize_set = true;
@@ -473,9 +466,6 @@ public class FileBrowser : Grid
else
basename = current.get_basename ();
- // indentation
- string indent = string.nfill (i * 2, ' ');
-
// pixbuf
string pixbuf;
if (i == 0)
@@ -489,7 +479,6 @@ public class FileBrowser : Grid
_parent_dir_store.append (out iter);
_parent_dir_store.set (iter,
ParentDirColumn.FILE, current,
- ParentDirColumn.INDENT, indent,
ParentDirColumn.NAME, basename,
ParentDirColumn.PIXBUF, pixbuf,
-1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]