From 9bdafc8d2d0ace8e3292d2c1f81a8cbe43e1fe9a Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 17 Dec 2012 09:19:16 +0000 Subject: [PATCH] Move dialog resizable set call to the basic_create function. Signed-off-by: Christopher Michael SVN revision: 81076 --- src/modules/conf_randr/e_int_config_randr.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/modules/conf_randr/e_int_config_randr.c b/src/modules/conf_randr/e_int_config_randr.c index 5e1839eed..e43c97e19 100644 --- a/src/modules/conf_randr/e_int_config_randr.c +++ b/src/modules/conf_randr/e_int_config_randr.c @@ -47,9 +47,6 @@ e_int_config_randr(E_Container *con, const char *params __UNUSED__) "preferences-system-screen-resolution", 0, v, NULL); - /* set dialog to be resizable */ - e_dialog_resizable_set(cfd->dia, EINA_TRUE); - return cfd; } @@ -100,6 +97,13 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata) e_widget_list_object_append(o, cfdata->o_randr, 1, 1, 0.5); } + /* set a minimum size */ + e_widget_size_min_set(o, (E_RANDR_12->current_size.width / 10), + (E_RANDR_12->current_size.height / 10)); + + /* set this dialog to be resizable */ + e_dialog_resizable_set(cfd->dia, EINA_TRUE); + /* return the base widget */ return o; }