aboutsummaryrefslogtreecommitdiff
path: root/src/hci/mucurses/widgets/label.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hci/mucurses/widgets/label.c')
-rw-r--r--src/hci/mucurses/widgets/label.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/hci/mucurses/widgets/label.c b/src/hci/mucurses/widgets/label.c
index 29645a6..29057f0 100644
--- a/src/hci/mucurses/widgets/label.c
+++ b/src/hci/mucurses/widgets/label.c
@@ -36,10 +36,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
/**
* Draw text label widget
*
- * @v widgets Text widget set
* @v widget Text widget
*/
-static void draw_label ( struct widgets *widgets, struct widget *widget ) {
+static void draw_label ( struct widget *widget ) {
struct label *label = container_of ( widget, struct label, widget );
unsigned int width = widget->width;
unsigned int col = widget->col;
@@ -51,20 +50,18 @@ static void draw_label ( struct widgets *widgets, struct widget *widget ) {
/* Print label content */
attron ( A_BOLD );
- mvwprintw ( widgets->win, widget->row, col, "%s", text );
+ mvprintw ( widget->row, col, "%s", text );
attroff ( A_BOLD );
}
/**
* Edit text label widget
*
- * @v widgets Text widget set
* @v widget Text widget
* @v key Key pressed by user
* @ret key Key returned to application, or zero
*/
-static int edit_label ( struct widgets *widgets __unused,
- struct widget *widget __unused, int key ) {
+static int edit_label ( struct widget *widget __unused, int key ) {
/* Cannot be edited */
return key;