From 84dc539ddf32180d8efb16eb6e84a51002d8aed8 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 13 Aug 2013 11:04:55 +0100 Subject: [PATCH] ibar obeys max size hint --- src/modules/ibar/e_mod_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c index a517a9bf2..ae7f9b926 100644 --- a/src/modules/ibar/e_mod_main.c +++ b/src/modules/ibar/e_mod_main.c @@ -590,6 +590,13 @@ _ibar_resize_handle(IBar *b) Evas_Coord w, h; evas_object_geometry_get(b->o_box, NULL, NULL, &w, &h); + if (b->inst->gcc) + { + if (b->inst->gcc->max.w) + w = MIN(w, b->inst->gcc->max.w); + if (b->inst->gcc->max.h) + h = MIN(h, b->inst->gcc->max.h); + } if (e_box_orientation_get(b->o_box)) w = h; else