entry: Move spinbutton size hack

If we want to do special sizing for the text, we need to do it for the
text. Otherwise paddings, borders and entyr icons will screw up
everything.
This commit is contained in:
Benjamin Otte
2016-01-25 15:42:18 +01:00
parent 02fab14b3b
commit 3982f05be4
3 changed files with 44 additions and 34 deletions

View File

@ -24,6 +24,7 @@
#include <gtk/gtkentrycompletion.h>
#include <gtk/gtkentry.h>
#include <gtk/gtkcssgadgetprivate.h>
#include <gtk/gtkspinbutton.h>
G_BEGIN_DECLS
@ -91,6 +92,9 @@ GtkCssGadget* gtk_entry_get_gadget (GtkEntry *entry);
void _gtk_entry_grab_focus (GtkEntry *entry,
gboolean select_all);
/* in gtkspinbutton.c (because I'm too lazy to create gtkspinbuttonprivate.h) */
gint gtk_spin_button_get_text_width (GtkSpinButton *spin_button);
G_END_DECLS
#endif /* __GTK_ENTRY_PRIVATE_H__ */