summaryrefslogtreecommitdiff
path: root/gtk/gtkentryprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-01-25 15:42:18 +0100
committerBenjamin Otte <otte@redhat.com>2016-01-25 15:49:17 +0100
commit3982f05be4c228c3ec754a9783913b55d1ecef4d (patch)
tree4e3b174bebbda903160db2b6253098cbbbfee4ba /gtk/gtkentryprivate.h
parent02fab14b3bd8aa2bb34e0945c783276e85a6f098 (diff)
downloadgtk+-3982f05be4c228c3ec754a9783913b55d1ecef4d.tar.gz
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.
Diffstat (limited to 'gtk/gtkentryprivate.h')
-rw-r--r--gtk/gtkentryprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkentryprivate.h b/gtk/gtkentryprivate.h
index bc5e248748..53a90785d6 100644
--- a/gtk/gtkentryprivate.h
+++ b/gtk/gtkentryprivate.h
@@ -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__ */