summaryrefslogtreecommitdiff
path: root/gui/comp.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2017-05-07 00:12:57 (GMT)
committerWerner Almesberger <werner@almesberger.net>2017-05-07 00:12:57 (GMT)
commitf405999fbaf5615f55f68adc3396566a66b562d7 (patch)
tree29533c0eabd5ab6da83f6f2c193162ad123a1b07 /gui/comp.c
parent076f5639036b136fe237856390c66b7fed18ebaf (diff)
downloadeeshow-f405999fbaf5615f55f68adc3396566a66b562d7.zip
eeshow-f405999fbaf5615f55f68adc3396566a66b562d7.tar.gz
eeshow-f405999fbaf5615f55f68adc3396566a66b562d7.tar.bz2
new undocumented option "-C width" to set component pop-up width (0: fit content)
Diffstat (limited to 'gui/comp.c')
-rw-r--r--gui/comp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/comp.c b/gui/comp.c
index 45a1de0..3a9cb25 100644
--- a/gui/comp.c
+++ b/gui/comp.c
@@ -48,6 +48,8 @@ struct comp_aoi_ctx {
#define COMP_W 100
+unsigned comp_pop_width = COMP_W;
+
/* ----- Bounding box ------------------------------------------------------ */
@@ -166,9 +168,9 @@ static bool hover_comp(void *user, bool on, int dx, int dy)
overlay_remove_all(&gui->pop_overlays);
overlay_remove_all(&gui->pop_underlays);
- add_pop_header(gui, COMP_W, ctx->ref);
+ add_pop_header(gui, comp_pop_width, ctx->ref);
for (item = ctx->items; item; item = item->next)
- add_pop_item(gui, comp_click, (void *) item, COMP_W, 0,
+ add_pop_item(gui, comp_click, (void *) item, comp_pop_width, 0,
"%s", item->tag);
add_pop_frame(gui);