summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.h
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-05-04 18:31:41 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:11 -0400
commit3c2d2545b2c491ebe50660b718f6a337fb96a540 (patch)
tree0fedc438f1fc48068e8141216c82a4ca0a26411e /gtk/gtkspinbutton.h
parentfc5c2f2030bbf5ead08c385381974a42306396d9 (diff)
downloadgtk+-3c2d2545b2c491ebe50660b718f6a337fb96a540.tar.gz
spinbutton: Inherit from GtkWidget
Use a box, an entry and the current 2 buttons. Remaining problems: Entry sizing and activation.
Diffstat (limited to 'gtk/gtkspinbutton.h')
-rw-r--r--gtk/gtkspinbutton.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkspinbutton.h b/gtk/gtkspinbutton.h
index 7ce9965077..4abadc86a1 100644
--- a/gtk/gtkspinbutton.h
+++ b/gtk/gtkspinbutton.h
@@ -33,7 +33,7 @@
#error "Only <gtk/gtk.h> can be included directly."
#endif
-#include <gtk/gtkentry.h>
+#include <gtk/gtkwidget.h>
G_BEGIN_DECLS
@@ -108,7 +108,7 @@ typedef struct _GtkSpinButtonClass GtkSpinButtonClass;
*/
struct _GtkSpinButton
{
- GtkEntry entry;
+ GtkWidget parent_instance;
/*< private >*/
GtkSpinButtonPrivate *priv;
@@ -116,7 +116,7 @@ struct _GtkSpinButton
struct _GtkSpinButtonClass
{
- GtkEntryClass parent_class;
+ GtkWidgetClass parent_class;
gint (*input) (GtkSpinButton *spin_button,
gdouble *new_value);