[gtk+/treeview-refactor-staging: 14/16] Added different icon at the end of testtreeedit to see if RTL is actually working.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor-staging: 14/16] Added different icon at the end of testtreeedit to see if RTL is actually working.
- Date: Sun, 5 Dec 2010 06:17:52 +0000 (UTC)
commit 52d4a8c5c57d85a1ad5feb7db27e155e25a9d8f3
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Dec 5 12:44:43 2010 +0900
Added different icon at the end of testtreeedit to see if RTL is actually working.
tests/testtreeedit.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tests/testtreeedit.c b/tests/testtreeedit.c
index 92a75ba..924dc16 100644
--- a/tests/testtreeedit.c
+++ b/tests/testtreeedit.c
@@ -31,6 +31,7 @@ enum {
STRING_COLUMN,
IS_EDITABLE_COLUMN,
PIXBUF_COLUMN,
+ LAST_PIXBUF_COLUMN,
PROGRESS_COLUMN,
NUM_COLUMNS
};
@@ -51,17 +52,19 @@ create_model (void)
GtkTreeStore *model;
GtkTreeIter iter;
gint i;
- GdkPixbuf *foo;
+ GdkPixbuf *foo, *bar;
GtkWidget *blah;
blah = gtk_window_new (GTK_WINDOW_TOPLEVEL);
foo = gtk_widget_render_icon (blah, GTK_STOCK_NEW, GTK_ICON_SIZE_MENU, NULL);
+ bar = gtk_widget_render_icon (blah, GTK_STOCK_DELETE, GTK_ICON_SIZE_MENU, NULL);
gtk_widget_destroy (blah);
model = gtk_tree_store_new (NUM_COLUMNS,
G_TYPE_STRING,
G_TYPE_BOOLEAN,
GDK_TYPE_PIXBUF,
+ GDK_TYPE_PIXBUF,
G_TYPE_INT);
for (i = 0; model_strings[i].string != NULL; i++)
@@ -72,6 +75,7 @@ create_model (void)
STRING_COLUMN, model_strings[i].string,
IS_EDITABLE_COLUMN, model_strings[i].is_editable,
PIXBUF_COLUMN, foo,
+ LAST_PIXBUF_COLUMN, bar,
PROGRESS_COLUMN, model_strings[i].progress,
-1);
}
@@ -224,7 +228,7 @@ main (gint argc, gchar **argv)
NULL);
gtk_tree_view_column_pack_start (column, renderer, FALSE);
gtk_tree_view_column_set_attributes (column, renderer,
- "pixbuf", PIXBUF_COLUMN, NULL);
+ "pixbuf", LAST_PIXBUF_COLUMN, NULL);
callback[3].area = area;
callback[3].renderer = renderer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]