Commit 9493e943 authored by Nelson Benítez León's avatar Nelson Benítez León

gtkcombobox: in has-entry case, allow entry be shorter that 150px

When "has-entry" is true (GtkCombobox has an editable GtkEntry)
allow the GtkEntry to be shorter than 150px and thus match the
ComboBox width when this is shorter than 150px.

This fixes evince#1002 by work around the issue #1422 for the
GtkComboBox case.
parent 615fa7cf
Pipeline #36834 passed with stage
in 8 minutes and 19 seconds
......@@ -1629,6 +1629,10 @@ gtk_combo_box_create_child (GtkComboBox *combo_box)
entry = gtk_entry_new ();
gtk_widget_show (entry);
/* This sets GtkEntry's minimum-width to be 1 char long, short enough
* to workaround gtk issue gtk#1422 . Also fixes evince#1002 */
gtk_entry_set_width_chars (GTK_ENTRY (entry), 1);
gtk_container_add (GTK_CONTAINER (combo_box), entry);
context = gtk_widget_get_style_context (GTK_WIDGET (entry));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment