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:
		| @ -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__ */ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Benjamin Otte
					Benjamin Otte