mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
Added different icon at the end of testtreeedit to see if RTL is actually working.
This commit is contained in:
parent
7b61cd8257
commit
c6e1463d1e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user