xsession_chooser_ui.inc 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // The user interface definition used for the session chooser.
  5. namespace remoting {
  6. namespace {
  7. const char UI[] = R"UI_Definition(
  8. <interface>
  9. <requires lib="gtk+" version="3.2"/>
  10. <object class="GtkListStore" id="session_store">
  11. <columns>
  12. <column type="guint"/>
  13. <column type="gchararray"/>
  14. <column type="gchararray"/>
  15. </columns>
  16. </object>
  17. <object class="GtkDialog" id="dialog">
  18. <property name="can_focus">False</property>
  19. <property name="default_width">600</property>
  20. <property name="default_height">400</property>
  21. <property name="type_hint">dialog</property>
  22. <child>
  23. <placeholder/>
  24. </child>
  25. <child internal-child="vbox">
  26. <object class="GtkBox" id="layout_box">
  27. <property name="can_focus">False</property>
  28. <property name="orientation">vertical</property>
  29. <property name="spacing">2</property>
  30. <child internal-child="action_area">
  31. <object class="GtkButtonBox" id="button_box">
  32. <property name="can_focus">False</property>
  33. <property name="layout_style">end</property>
  34. <child>
  35. <object class="GtkButton" id="ok_button">
  36. <property name="label">gtk-ok</property>
  37. <property name="visible">True</property>
  38. <property name="can_focus">True</property>
  39. <property name="receives_default">True</property>
  40. <property name="use_stock">True</property>
  41. </object>
  42. <packing>
  43. <property name="expand">True</property>
  44. <property name="fill">True</property>
  45. <property name="position">0</property>
  46. </packing>
  47. </child>
  48. </object>
  49. <packing>
  50. <property name="expand">False</property>
  51. <property name="fill">False</property>
  52. <property name="position">0</property>
  53. </packing>
  54. </child>
  55. <child>
  56. <object class="GtkLabel" id="message">
  57. <property name="visible">True</property>
  58. <property name="can_focus">False</property>
  59. <property name="wrap">True</property>
  60. </object>
  61. <packing>
  62. <property name="expand">False</property>
  63. <property name="fill">True</property>
  64. <property name="position">1</property>
  65. </packing>
  66. </child>
  67. <child>
  68. <object class="GtkScrolledWindow" id="scroll_container">
  69. <property name="visible">True</property>
  70. <property name="can_focus">True</property>
  71. <property name="shadow_type">in</property>
  72. <child>
  73. <object class="GtkTreeView" id="session_list">
  74. <property name="visible">True</property>
  75. <property name="can_focus">True</property>
  76. <property name="model">session_store</property>
  77. <child internal-child="selection">
  78. <object class="GtkTreeSelection" id="session_selection">
  79. <property name="mode">browse</property>
  80. </object>
  81. </child>
  82. <child>
  83. <object class="GtkTreeViewColumn" id="name_column">
  84. <child>
  85. <object class="GtkCellRendererText" id="name_text"/>
  86. <attributes>
  87. <attribute name="text">1</attribute>
  88. </attributes>
  89. </child>
  90. </object>
  91. </child>
  92. <child>
  93. <object class="GtkTreeViewColumn" id="comment_column">
  94. <child>
  95. <object class="GtkCellRendererText" id="comment_text"/>
  96. <attributes>
  97. <attribute name="text">2</attribute>
  98. </attributes>
  99. </child>
  100. </object>
  101. </child>
  102. </object>
  103. </child>
  104. </object>
  105. <packing>
  106. <property name="expand">True</property>
  107. <property name="fill">True</property>
  108. <property name="position">2</property>
  109. </packing>
  110. </child>
  111. </object>
  112. </child>
  113. </object>
  114. </interface>
  115. )UI_Definition";
  116. } // namespace
  117. } // namespace remoting