Issue #2828: Scrolling up with a mouse within a drop-down list.
We were doing it all the wrong way, fixing one combo box object at a time. So this commit basically reverses commits68a33ab5bd,6dfca83c2aanda9a979b2d0and instead runs the same code in the class code. This way, all objects based on these base classes will have the fix from scratch. These improved various other drop-down lists (I found some of them, and probably not all) as I fixed all GIMP custom widgets based on GtkComboBox. Note that it has to be run after filling the list apparently (I had the problem especially with GimpIntComboBox if running in the _init() code, then the list widget showed wrong). (cherry picked from commit1d984542e9)
This commit is contained in:
@ -159,6 +159,9 @@ gimp_string_combo_box_constructed (GObject *object)
|
||||
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (object), cell,
|
||||
"text", priv->label_column,
|
||||
NULL);
|
||||
|
||||
/* See issues #2828 and #2642. */
|
||||
gtk_combo_box_set_wrap_width (GTK_COMBO_BOX (object), 1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user