diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2013-07-17 19:34:22 -0400 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2013-07-17 20:48:59 -0400 |
commit | becc69055f5435f2e70e0b3cbdb26c9f20df4c05 (patch) | |
tree | 6f16af22b2479862bcc7fe364fdb951e8d5c54b2 /docs/tools | |
parent | 1a0c5acb26bee3df52b75cf34b95c4d93810f3b7 (diff) | |
download | gtk+-becc69055f5435f2e70e0b3cbdb26c9f20df4c05.tar.gz |
docs: don't use an icon by default in the combobox shot
Diffstat (limited to 'docs/tools')
-rw-r--r-- | docs/tools/widgets.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c index 1cbf35c1bd..2044cd911f 100644 --- a/docs/tools/widgets.c +++ b/docs/tools/widgets.c @@ -427,15 +427,12 @@ create_combo_box (void) widget = gtk_combo_box_new (); gtk_cell_layout_clear (GTK_CELL_LAYOUT (widget)); - cell = gtk_cell_renderer_pixbuf_new (); - gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (widget), cell, FALSE); - gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), cell, "icon-name", 0, NULL); cell = gtk_cell_renderer_text_new (); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (widget), cell, FALSE); - gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), cell, "text", 1, NULL); + gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (widget), cell, "text", 0, NULL); - store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING); - gtk_list_store_insert_with_values (store, NULL, -1, 0, "edit-delete", 1, "Combo Box", -1); + store = gtk_list_store_new (1, G_TYPE_STRING); + gtk_list_store_insert_with_values (store, NULL, -1, 0, "Combo Box", -1); gtk_combo_box_set_model (GTK_COMBO_BOX (widget), GTK_TREE_MODEL (store)); gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0); |