summaryrefslogtreecommitdiffstats
path: root/include/widgets/widget-internal.h
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2021-09-06 22:36:21 +0200
committerDave Davenport <qball@blame.services>2021-09-06 22:36:21 +0200
commit154e03efc1fd8cc469d61441209494cf03164d54 (patch)
tree28952710acfbd690887e8b186f3fa20be3d174d9 /include/widgets/widget-internal.h
parent294a22f3dde28e44df9a1772ea7c7b685a3c8edf (diff)
[I1437] Textbox make get_desired_width depend on width.
Should fix some weird sizing issues on creation of widgest. Issue: #1437
Diffstat (limited to 'include/widgets/widget-internal.h')
-rw-r--r--include/widgets/widget-internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/widgets/widget-internal.h b/include/widgets/widget-internal.h
index 159c80f2..91c3a8d9 100644
--- a/include/widgets/widget-internal.h
+++ b/include/widgets/widget-internal.h
@@ -80,8 +80,8 @@ struct _widget {
/** Handle mouse motion, used for dragging */
gboolean (*motion_notify)(struct _widget *, gint x, gint y);
- int (*get_desired_height)(struct _widget *);
- int (*get_desired_width)(struct _widget *);
+ int (*get_desired_height)(struct _widget *, const int width);
+ int (*get_desired_width)(struct _widget *, const int height);
void (*set_state)(struct _widget *, const char *);