diff --git a/src/panel/widgets/menu.cpp b/src/panel/widgets/menu.cpp index 54b95aa..0075961 100644 --- a/src/panel/widgets/menu.cpp +++ b/src/panel/widgets/menu.cpp @@ -812,6 +812,9 @@ void WayfireMenu::init(Gtk::HBox *container) menu_icon.set_callback([=] () { update_icon(); }); menu_size.set_callback([=] () { update_icon(); }); + menu_min_category_width.set_callback([=] () { update_category_width(); }); + menu_min_content_height.set_callback([=] () { update_content_height(); }); + menu_min_content_width.set_callback([=] () { update_content_width(); }); panel_position.set_callback([=] () { update_popover_layout(); }); menu_show_categories.set_callback([=] () { update_popover_layout(); }); menu_list.set_callback([=] () { update_popover_layout(); }); @@ -877,6 +880,22 @@ void WayfireMenu::init(Gtk::HBox *container) button->show(); } +void WayfireMenu::update_category_width() +{ + category_scrolled_window.set_min_content_width(int(menu_min_category_width)); +} + +void WayfireMenu::update_content_height() +{ + category_scrolled_window.set_min_content_height(int(menu_min_content_height)); + app_scrolled_window.set_min_content_height(int(menu_min_content_height)); +} + +void WayfireMenu::update_content_width() +{ + app_scrolled_window.set_min_content_width(int(menu_min_content_width)); +} + void WayfireMenu::toggle_menu() { if (button->get_active()) diff --git a/src/panel/widgets/menu.hpp b/src/panel/widgets/menu.hpp index fe06925..b5f31c2 100644 --- a/src/panel/widgets/menu.hpp +++ b/src/panel/widgets/menu.hpp @@ -178,6 +178,9 @@ class WayfireMenu : public WayfireWidget WfOption menu_min_content_height{"panel/menu_min_content_height"}; WfOption menu_show_categories{"panel/menu_show_categories"}; void update_popover_layout(); + void update_category_width(); + void update_content_height(); + void update_content_width(); void create_logout_ui(); void on_logout_click(); void key_press_search();