gtk-builder.ui 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <interface>
  3. <object class="GtkListStore" id="liststore1">
  4. <columns>
  5. <column type="gchararray"/>
  6. <column type="gchararray"/>
  7. <column type="gint"/>
  8. <column type="gchararray"/>
  9. </columns>
  10. <data>
  11. <row>
  12. <col id="0" translatable="yes">John</col>
  13. <col id="1" translatable="yes">Doe</col>
  14. <col id="2">25</col>
  15. <col id="3" translatable="yes">This is the John Doe row</col>
  16. </row>
  17. <row>
  18. <col id="0" translatable="yes">Mary</col>
  19. <col id="1" translatable="yes">Unknown</col>
  20. <col id="2">50</col>
  21. <col id="3" translatable="yes">This is the Mary Unknown row</col>
  22. </row>
  23. </data>
  24. </object>
  25. <object class="GtkWindow" id="window1">
  26. <property name="default-height">250</property>
  27. <property name="default-width">440</property>
  28. <property name="title" translatable="yes">Gtk::Builder demo</property>
  29. <child>
  30. <object class="GtkBox" id="vbox1">
  31. <property name="orientation">vertical</property>
  32. <child>
  33. <object class="GtkBox" id="toolbar1">
  34. <child>
  35. <object class="GtkButton">
  36. <property name="label" translatable="yes">Help</property>
  37. <property name="tooltip-text" translatable="yes">Help</property>
  38. <property name="action-name">win.help</property>
  39. </object>
  40. </child>
  41. </object>
  42. </child>
  43. <child>
  44. <object class="GtkScrolledWindow" id="scrolledwindow1">
  45. <property name="hexpand">True</property>
  46. <property name="vexpand">True</property>
  47. <child>
  48. <object class="GtkTreeView" id="treeview1">
  49. <property name="model">liststore1</property>
  50. <property name="tooltip-column">3</property>
  51. <child>
  52. <object class="GtkTreeViewColumn" id="column1">
  53. <property name="title">Name</property>
  54. <child>
  55. <object class="GtkCellRendererText" id="renderer1"/>
  56. <attributes>
  57. <attribute name="text">0</attribute>
  58. </attributes>
  59. </child>
  60. </object>
  61. </child>
  62. <child>
  63. <object class="GtkTreeViewColumn" id="column2">
  64. <property name="title">Surname</property>
  65. <child>
  66. <object class="GtkCellRendererText" id="renderer2"/>
  67. <attributes>
  68. <attribute name="text">1</attribute>
  69. </attributes>
  70. </child>
  71. </object>
  72. </child>
  73. <child>
  74. <object class="GtkTreeViewColumn" id="column3">
  75. <property name="title">Age</property>
  76. <child>
  77. <object class="GtkCellRendererText" id="renderer3"/>
  78. <attributes>
  79. <attribute name="text">2</attribute>
  80. </attributes>
  81. </child>
  82. </object>
  83. </child>
  84. </object>
  85. </child>
  86. </object>
  87. </child>
  88. <child>
  89. <object class="GtkStatusbar" id="statusbar1"/>
  90. </child>
  91. </object>
  92. </child>
  93. </object>
  94. </interface>