[gtk+/open-with-dialog: 6/53] open-with: add xpadding to the treeview renderers
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/open-with-dialog: 6/53] open-with: add xpadding to the treeview renderers
- Date: Tue, 23 Nov 2010 16:51:44 +0000 (UTC)
commit a8cf63cc84ce119b101a1542e3652ccc52c56580
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Nov 16 15:14:11 2010 +0100
open-with: add xpadding to the treeview renderers
We use a GtkCellRenderer hack for this.
gtk/gtkopenwithdialog.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkopenwithdialog.c b/gtk/gtkopenwithdialog.c
index c0ad120..a88d20e 100644
--- a/gtk/gtkopenwithdialog.c
+++ b/gtk/gtkopenwithdialog.c
@@ -751,6 +751,13 @@ gtk_open_with_dialog_add_items_idle (gpointer user_data)
column = gtk_tree_view_column_new ();
+ /* initial padding */
+ renderer = gtk_cell_renderer_text_new ();
+ gtk_tree_view_column_pack_start (column, renderer, FALSE);
+ g_object_set (renderer,
+ "xpad", 6,
+ NULL);
+
/* heading text renderer */
renderer = gtk_cell_renderer_text_new ();
gtk_tree_view_column_pack_start (column, renderer, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]