summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorQuentin Glidic <sardemff7+git@sardemff7.net>2017-06-03 20:04:21 +0200
committerQuentin Glidic <sardemff7+git@sardemff7.net>2017-06-03 20:04:21 +0200
commit0adc0d7c086c57aebad3a9303e524f0e4d8d67a8 (patch)
tree520ed7d2c771a7bd222e1739d9e1e174b69a46d2 /include
parenta2620745e22433197dd10aa4a47b60d42491591b (diff)
view: Always create textbox with type
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'include')
-rw-r--r--include/widgets/textbox.h6
-rw-r--r--include/widgets/widget.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/widgets/textbox.h b/include/widgets/textbox.h
index f49a9126..9648cbaf 100644
--- a/include/widgets/textbox.h
+++ b/include/widgets/textbox.h
@@ -127,10 +127,8 @@ typedef enum
* free with #widget_free
* @returns a new #textbox
*/
-textbox* textbox_create_full ( WidgetType type, const char *name, TextboxFlags flags,
- TextBoxFontType tbft,
- const char *text );
-#define textbox_create( n, f, tbft, t ) textbox_create_full ( WIDGET_TYPE_UNKNOWN, n, f, tbft, t )
+textbox* textbox_create ( WidgetType type, const char *name, TextboxFlags flags,
+ TextBoxFontType tbft, const char *text );
/**
* @param tb Handle to the textbox
* @param tbft The style of font to render.
diff --git a/include/widgets/widget.h b/include/widgets/widget.h
index 8fce3a43..4fc99cfa 100644
--- a/include/widgets/widget.h
+++ b/include/widgets/widget.h
@@ -67,6 +67,8 @@ typedef enum
WIDGET_TYPE_SCROLLBAR = SCOPE_MOUSE_SCROLLBAR,
/** A tab in the modi sidebar */
WIDGET_TYPE_SIDEBAR_MODI = SCOPE_MOUSE_SIDEBAR_MODI,
+ /** Text-only textbox */
+ WIDGET_TYPE_TEXTBOX_TEXT,
} WidgetType;
/**