[gtk+/native-layout: 30/31] Augmented the wrapping treeview test to include a scrolled window.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/native-layout: 30/31] Augmented the wrapping treeview test to include a scrolled window.
- Date: Tue, 29 Jun 2010 21:50:52 +0000 (UTC)
commit 237d97dc25e836f9b2fa205d379a4d7f1348cf61
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Tue Jun 29 17:06:53 2010 -0400
Augmented the wrapping treeview test to include a scrolled window.
tests/testheightforwidth.c | 248 ++++++++++++++++++++++++++++----------------
1 files changed, 159 insertions(+), 89 deletions(-)
---
diff --git a/tests/testheightforwidth.c b/tests/testheightforwidth.c
index a265005..2c27047 100644
--- a/tests/testheightforwidth.c
+++ b/tests/testheightforwidth.c
@@ -763,95 +763,6 @@ TestInterface interfaces[] = {
"<interface>"
" <requires lib=\"gtk+\" version=\"2.20\"/>"
" <!-- interface-naming-policy project-wide -->"
- " <object class=\"GtkWindow\" id=\"window\">"
- " <property name=\"default_width\">650</property>"
- " <child>"
- " <object class=\"GtkHPaned\" id=\"hpaned1\">"
- " <property name=\"visible\">True</property>"
- " <property name=\"can_focus\">True</property>"
- " <property name=\"position\">400</property>"
- " <child>"
- " <object class=\"GtkTreeView\" id=\"treeview1\">"
- " <property name=\"visible\">True</property>"
- " <property name=\"can_focus\">True</property>"
- " <property name=\"model\">liststore1</property>"
- " <property name=\"headers_clickable\">False</property>"
- " <property name=\"search_column\">0</property>"
- " <child>"
- " <object class=\"GtkTreeViewColumn\" id=\"treeviewcolumn1\">"
- " <property name=\"sizing\">autosize</property>"
- " <property name=\"title\" translatable=\"yes\">#1</property>"
- " <property name=\"expand\">True</property>"
- " <child>"
- " <object class=\"GtkCellRendererText\" id=\"cellrenderertext1\">"
- " <property name=\"width_chars\">10</property>"
- " <property name=\"wrap_mode\">word</property>"
- " <property name=\"wrap_width\">300</property>"
- " </object>"
- " <attributes>"
- " <attribute name=\"text\">0</attribute>"
- " </attributes>"
- " </child>"
- " <child>"
- " <object class=\"GtkCellRendererPixbuf\" id=\"cellrendererpixbuf1\"/>"
- " <attributes>"
- " <attribute name=\"icon-name\">1</attribute>"
- " </attributes>"
- " </child>"
- " </object>"
- " </child>"
- " <child>"
- " <object class=\"GtkTreeViewColumn\" id=\"treeviewcolumn2\">"
- " <property name=\"sizing\">autosize</property>"
- " <property name=\"title\" translatable=\"yes\">#2</property>"
- " <property name=\"expand\">True</property>"
- " <child>"
- " <object class=\"GtkCellRendererPixbuf\" id=\"cellrendererpixbuf2\"/>"
- " <attributes>"
- " <attribute name=\"icon-name\">1</attribute>"
- " </attributes>"
- " </child>"
- " <child>"
- " <object class=\"GtkCellRendererText\" id=\"cellrenderertext2\">"
- " <property name=\"ellipsize\">start</property>"
- " </object>"
- " <attributes>"
- " <attribute name=\"text\">2</attribute>"
- " </attributes>"
- " </child>"
- " <child>"
- " <object class=\"GtkCellRendererText\" id=\"cellrenderertext3\">"
- " <property name=\"width_chars\">10</property>"
- " <property name=\"wrap_mode\">word</property>"
- " <property name=\"wrap_width\">300</property>"
- " </object>"
- " <attributes>"
- " <attribute name=\"text\">3</attribute>"
- " </attributes>"
- " </child>"
- " </object>"
- " </child>"
- " </object>"
- " <packing>"
- " <property name=\"resize\">False</property>"
- " <property name=\"shrink\">False</property>"
- " </packing>"
- " </child>"
- " <child>"
- " <object class=\"GtkLabel\" id=\"label1\">"
- " <property name=\"visible\">True</property>"
- " <property name=\"label\" translatable=\"yes\">static\n"
- "text\n"
- "here</property>"
- " </object>"
- " <packing>"
- " <property name=\"resize\">True</property>"
- " <property name=\"shrink\">False</property>"
- " </packing>"
- " </child>"
- " </object>"
- " </child>"
- " </object>"
" <object class=\"GtkListStore\" id=\"liststore1\">"
" <columns>"
" <!-- column-name first-text -->"
@@ -894,8 +805,167 @@ TestInterface interfaces[] = {
" <col id=\"2\" translatable=\"yes\">at all</col>"
" <col id=\"3\" translatable=\"yes\">wide because of this long text.</col>"
" </row>"
+ " <row>"
+ " <col id=\"0\" translatable=\"yes\">---------------</col>"
+ " <col id=\"1\" translatable=\"yes\"></col>"
+ " <col id=\"2\" translatable=\"yes\">-------</col>"
+ " <col id=\"3\" translatable=\"yes\">-------------</col>"
+ " </row>"
+ " <row>"
+ " <col id=\"0\" translatable=\"yes\">here we add some</col>"
+ " <col id=\"1\" translatable=\"yes\">gtk-bold</col>"
+ " <col id=\"2\" translatable=\"yes\">more</col>"
+ " <col id=\"3\" translatable=\"yes\">lets put some more</col>"
+ " </row>"
+ " <row>"
+ " <col id=\"0\" translatable=\"yes\">more text just</col>"
+ " <col id=\"1\" translatable=\"yes\">gtk-execute</col>"
+ " <col id=\"2\" translatable=\"yes\">and</col>"
+ " <col id=\"3\" translatable=\"yes\">text in all these</col>"
+ " </row>"
+ " <row>"
+ " <col id=\"0\" translatable=\"yes\">to show the scrolled window</col>"
+ " <col id=\"1\" translatable=\"yes\">gtk-add</col>"
+ " <col id=\"2\" translatable=\"yes\">more</col>"
+ " <col id=\"3\" translatable=\"yes\">columns</col>"
+ " </row>"
+ " <row>"
+ " <col id=\"0\" translatable=\"yes\">resizing and scrolling</col>"
+ " <col id=\"1\" translatable=\"yes\">gtk-remove</col>"
+ " <col id=\"2\" translatable=\"yes\">text</col>"
+ " <col id=\"3\" translatable=\"yes\">damn there are alot</col>"
+ " </row>"
+ " <row>"
+ " <col id=\"0\" translatable=\"yes\">more and more</col>"
+ " <col id=\"1\" translatable=\"yes\">gtk-copy</col>"
+ " <col id=\"2\" translatable=\"yes\">here</col>"
+ " <col id=\"3\" translatable=\"yes\">of columns to fill</col>"
+ " </row>"
+ " <row>"
+ " <col id=\"0\" translatable=\"yes\">text to enter</col>"
+ " <col id=\"1\" translatable=\"yes\">gtk-paste</col>"
+ " <col id=\"2\" translatable=\"yes\">more</col>"
+ " <col id=\"3\" translatable=\"yes\">in this liststore !</col>"
+ " </row>"
+ " <row>"
+ " <col id=\"0\" translatable=\"yes\">bla bla bla...</col>"
+ " <col id=\"1\" translatable=\"yes\">gtk-edit</col>"
+ " <col id=\"2\" translatable=\"yes\">text</col>"
+ " <col id=\"3\" translatable=\"yes\">ok here it comes</col>"
+ " </row>"
+ " <row>"
+ " <col id=\"0\" translatable=\"yes\">almost getting to the last column here</col>"
+ " <col id=\"1\" translatable=\"yes\">gtk-italic</col>"
+ " <col id=\"2\" translatable=\"yes\">more</col>"
+ " <col id=\"3\" translatable=\"yes\">its getting closer</col>"
+ " </row>"
+ " <row>"
+ " <col id=\"0\" translatable=\"yes\">stop its the last row !</col>"
+ " <col id=\"1\" translatable=\"yes\">gtk-save</col>"
+ " <col id=\"2\" translatable=\"yes\">text</col>"
+ " <col id=\"3\" translatable=\"yes\">and tada we reached the last damn row</col>"
+ " </row>"
" </data>"
" </object>"
+ " <object class=\"GtkWindow\" id=\"window\">"
+ " <property name=\"default_width\">700</property>"
+ " <property name=\"default_height\">400</property>"
+ " <child>"
+ " <object class=\"GtkHPaned\" id=\"hpaned1\">"
+ " <property name=\"visible\">True</property>"
+ " <property name=\"can_focus\">True</property>"
+ " <property name=\"position\">400</property>"
+ " <child>"
+ " <object class=\"GtkScrolledWindow\" id=\"scrolledwindow1\">"
+ " <property name=\"visible\">True</property>"
+ " <property name=\"can_focus\">True</property>"
+ " <property name=\"hscrollbar_policy\">automatic</property>"
+ " <property name=\"vscrollbar_policy\">automatic</property>"
+ " <property name=\"shadow_type\">in</property>"
+ " <child>"
+ " <object class=\"GtkTreeView\" id=\"treeview1\">"
+ " <property name=\"visible\">True</property>"
+ " <property name=\"can_focus\">True</property>"
+ " <property name=\"model\">liststore1</property>"
+ " <property name=\"headers_clickable\">False</property>"
+ " <property name=\"search_column\">0</property>"
+ " <child>"
+ " <object class=\"GtkTreeViewColumn\" id=\"treeviewcolumn1\">"
+ " <property name=\"sizing\">autosize</property>"
+ " <property name=\"title\" translatable=\"yes\">#1</property>"
+ " <property name=\"expand\">True</property>"
+ " <child>"
+ " <object class=\"GtkCellRendererText\" id=\"cellrenderertext1\">"
+ " <property name=\"width_chars\">10</property>"
+ " <property name=\"wrap_mode\">word</property>"
+ " <property name=\"wrap_width\">300</property>"
+ " </object>"
+ " <attributes>"
+ " <attribute name=\"text\">0</attribute>"
+ " </attributes>"
+ " </child>"
+ " <child>"
+ " <object class=\"GtkCellRendererPixbuf\" id=\"cellrendererpixbuf1\"/>"
+ " <attributes>"
+ " <attribute name=\"icon-name\">1</attribute>"
+ " </attributes>"
+ " </child>"
+ " </object>"
+ " </child>"
+ " <child>"
+ " <object class=\"GtkTreeViewColumn\" id=\"treeviewcolumn2\">"
+ " <property name=\"sizing\">autosize</property>"
+ " <property name=\"title\" translatable=\"yes\">#2</property>"
+ " <property name=\"expand\">True</property>"
+ " <child>"
+ " <object class=\"GtkCellRendererPixbuf\" id=\"cellrendererpixbuf2\"/>"
+ " <attributes>"
+ " <attribute name=\"icon-name\">1</attribute>"
+ " </attributes>"
+ " </child>"
+ " <child>"
+ " <object class=\"GtkCellRendererText\" id=\"cellrenderertext2\">"
+ " <property name=\"ellipsize\">start</property>"
+ " </object>"
+ " <attributes>"
+ " <attribute name=\"text\">2</attribute>"
+ " </attributes>"
+ " </child>"
+ " <child>"
+ " <object class=\"GtkCellRendererText\" id=\"cellrenderertext3\">"
+ " <property name=\"width_chars\">10</property>"
+ " <property name=\"wrap_mode\">word</property>"
+ " <property name=\"wrap_width\">300</property>"
+ " </object>"
+ " <attributes>"
+ " <attribute name=\"text\">3</attribute>"
+ " </attributes>"
+ " </child>"
+ " </object>"
+ " </child>"
+ " </object>"
+ " </child>"
+ " </object>"
+ " <packing>"
+ " <property name=\"resize\">False</property>"
+ " <property name=\"shrink\">False</property>"
+ " </packing>"
+ " </child>"
+ " <child>"
+ " <object class=\"GtkLabel\" id=\"label1\">"
+ " <property name=\"visible\">True</property>"
+ " <property name=\"label\" translatable=\"yes\">static\n"
+ "text\n"
+ "here\n</property>"
+ " </object>"
+ " <packing>"
+ " <property name=\"resize\">True</property>"
+ " <property name=\"shrink\">False</property>"
+ " </packing>"
+ " </child>"
+ " </object>"
+ " </child>"
+ " </object>"
"</interface>",
NULL
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]