diff options
author | Dave Davenport <DaveDavenport@users.noreply.github.com> | 2021-09-07 19:40:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 19:40:07 +0200 |
commit | c10ee955bd81d369034af47335a8ce7a7d1de52b (patch) | |
tree | 0eb90326d6733a34654ca0f56b5efaa7b0dd52a0 /include/widgets/widget-internal.h | |
parent | f4e5fd328ac0cf8510af735cfc175afbd3a18751 (diff) |
#1437 - Fix sizing logic for widgets and textboxes. (#1444)
* [I1437] Textbox make get_desired_width depend on width.
Should fix some weird sizing issues on creation of widgest.
* [i1437] [View] Do the sizing based on the desired window width.
issue: #1437
* [i1437] Fix header documentation.
Diffstat (limited to 'include/widgets/widget-internal.h')
-rw-r--r-- | include/widgets/widget-internal.h | 4 |
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 *); |