Commit 35c243b2 authored by Matthias Clasen's avatar Matthias Clasen

entry: use a gadget

Use a gadget for the entry. Selection and progress still
just use a CSS node. Most things seem to work correctly
with non-zero margin or padding.
parent 776778ef
This diff is collapsed.
......@@ -1213,7 +1213,6 @@ gtk_spin_button_get_preferred_width (GtkWidget *widget,
if (gtk_entry_get_width_chars (entry) < 0)
gint width, w;
GtkBorder borders;
PangoLayout *layout;
gchar *str;
......@@ -1234,9 +1233,6 @@ gtk_spin_button_get_preferred_width (GtkWidget *widget,
width = MAX (width, w);
g_free (str);
_gtk_entry_get_borders (entry, &borders);
width += borders.left + borders.right;
*minimum = width;
*natural = width;
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