Skip to content

Commit 2652795

Browse files
authored
Merge pull request #3489 from Sigma1912/Gmoccapy_Fix-gtk-warning-on-startup
Gmoccapy: Glade, use ComboBoxText instead of ComboBox to avoid gtk warning on startup
2 parents 1d3e229 + a1ff9c2 commit 2652795

1 file changed

Lines changed: 9 additions & 45 deletions

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.glade

Lines changed: 9 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -687,40 +687,6 @@
687687
<property name="visible">True</property>
688688
<property name="can-focus">False</property>
689689
</object>
690-
<object class="GtkListStore" id="lst_button_mode">
691-
<columns>
692-
<!-- column-name button_mode -->
693-
<column type="gint"/>
694-
<!-- column-name button_mode_description -->
695-
<column type="gchararray"/>
696-
</columns>
697-
<data>
698-
<row>
699-
<col id="0">0</col>
700-
<col id="1" translatable="yes">left rotate, middle move, right zoom</col>
701-
</row>
702-
<row>
703-
<col id="0">1</col>
704-
<col id="1" translatable="yes">left zoom, middle move, right rotate</col>
705-
</row>
706-
<row>
707-
<col id="0">2</col>
708-
<col id="1" translatable="yes">left move, middle rotate, right zoom</col>
709-
</row>
710-
<row>
711-
<col id="0">3</col>
712-
<col id="1" translatable="yes">left zoom, middle rotate, right move</col>
713-
</row>
714-
<row>
715-
<col id="0">4</col>
716-
<col id="1" translatable="yes">left move, middle zoom, right rotate</col>
717-
</row>
718-
<row>
719-
<col id="0">5</col>
720-
<col id="1" translatable="yes">left rotate, middle zoom, right move</col>
721-
</row>
722-
</data>
723-
</object>
724690
<object class="GtkListStore" id="lstst_icon_themes">
725691
<columns>
726692
<!-- column-name path -->
@@ -4447,20 +4413,18 @@ clicking on the DRO</property>
44474413
</packing>
44484414
</child>
44494415
<child>
4450-
<object class="GtkComboBox" id="cmb_mouse_button_mode">
4416+
<object class="GtkComboBoxText" id="cmb_mouse_button_mode">
44514417
<property name="visible">True</property>
44524418
<property name="can-focus">False</property>
4453-
<property name="model">lst_button_mode</property>
4454-
<property name="active">0</property>
4455-
<property name="has-entry">True</property>
4456-
<property name="entry-text-column">1</property>
4457-
<property name="id-column">0</property>
4419+
<items>
4420+
<item id="0" translatable="yes">left rotate, middle move, right zoom</item>
4421+
<item id="1" translatable="yes">left zoom, middle move, right rotate</item>
4422+
<item id="2" translatable="yes">left move, middle rotate, right zoom</item>
4423+
<item id="3" translatable="yes">left zoom, middle rotate, right move</item>
4424+
<item id="4" translatable="yes">left move, middle zoom, right rotate</item>
4425+
<item id="5" translatable="yes">left rotate, middle zoom, right move</item>
4426+
</items>
44584427
<signal name="changed" handler="on_cmb_mouse_button_mode_changed" swapped="no"/>
4459-
<child internal-child="entry">
4460-
<object class="GtkEntry">
4461-
<property name="can-focus">False</property>
4462-
</object>
4463-
</child>
44644428
</object>
44654429
<packing>
44664430
<property name="expand">True</property>

0 commit comments

Comments
 (0)