fixed GTK2 to GTK3 inconsistency
Build Debian Packages / build (bookworm, debian12) (push) Successful in 7m44s
Build Debian Packages / build (bullseye, debian11) (push) Successful in 6m45s
Build Debian Packages / build (trixie, debian13) (push) Successful in 8m18s

This commit is contained in:
2026-03-17 15:44:28 +01:00
parent f5811b8ee1
commit 886927b864
2 changed files with 7 additions and 6 deletions
+5 -4
View File
@@ -2328,10 +2328,11 @@ class MonitorWidgets:
self.display_source_combobox = self.xml_gui.get_object( "display_source_combobox" )
self.display_source_treestore = gtk.TreeStore( gobject.TYPE_STRING )
self.display_source_combobox.set_model( self.display_source_treestore )
#Cell Renderer seems to be automatically inserted in GTK3+
#display_source_cell = gtk.CellRendererText( )
#self.display_source_combobox.pack_start( display_source_cell, True )
#self.display_source_combobox.add_attribute( display_source_cell, 'text', 0 )
display_source_cell = gtk.CellRendererText( )
self.display_source_combobox.pack_start( display_source_cell, True )
self.display_source_combobox.add_attribute( display_source_cell, 'text', 0 )
# GTK3 fix: Prevent blank space from child tree nodes in popup
self.display_source_combobox.set_wrap_width(1)
self.source_list_reset( )
self.display_source_path_label = self.xml_gui.get_object( "display_source_path_label" )
+2 -2
View File
@@ -1047,9 +1047,9 @@ Public License instead of this License.
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="display_source_combobox">
<object class="GtkComboBox" id="display_source_combobox">
<property name="visible">True</property>
<property name="add_tearoffs">True</property>
<property name="popup-fixed-width">False</property>
</object>
<packing>
<property name="expand">False</property>