static void _e_gadcon_client_cb_menu_style_plain(void *data, E_Menu *m, E_Menu_Item *mi);
static void _e_gadcon_client_cb_menu_style_inset(void *data, E_Menu *m, E_Menu_Item *mi);
static void _e_gadcon_client_cb_menu_autoscroll(void *data, E_Menu *m, E_Menu_Item *mi);
-static void _e_gadcon_client_cb_menu_resizable(void *data, E_Menu *m, E_Menu_Item *mi);
+/*static void _e_gadcon_client_cb_menu_resizable(void *data, E_Menu *m, E_Menu_Item *mi);*/
static void _e_gadcon_client_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi);
static void _e_gadcon_client_cb_menu_remove(void *data, E_Menu *m, E_Menu_Item *mi);
static void _e_gadcon_client_cb_menu_pre(void *data, E_Menu *m, E_Menu_Item *mi);
e_gadcon_layout_pack_options_set(gcc->o_base, gcc);
e_gadcon_client_autoscroll_set(gcc, cf_gcc->autoscroll);
- e_gadcon_client_resizable_set(gcc, cf_gcc->resizable);
+// e_gadcon_client_resizable_set(gcc, cf_gcc->resizable);
if (gcc->client_class->func.orient)
gcc->client_class->func.orient(gcc, gc->orient);
e_gadcon_layout_pack_options_set(gcc->o_base, gcc);
e_gadcon_client_autoscroll_set(gcc, cf_gcc->autoscroll);
- e_gadcon_client_resizable_set(gcc, cf_gcc->resizable);
+// e_gadcon_client_resizable_set(gcc, cf_gcc->resizable);
if (gcc->client_class->func.orient)
gcc->client_class->func.orient(gcc, gc->orient);
e_theme_edje_object_set(gcc->o_control, "base/theme/gadman",
"e/gadman/control");
- if ((gcc->autoscroll) || (gcc->resizable))
+ if ((gcc->autoscroll)/* || (gcc->resizable)*/)
{
if (e_box_orientation_get(gcc->o_box))
edje_object_signal_emit(gcc->o_control, "e,state,hsize,on", "e");
E_OBJECT_TYPE_CHECK(gcc, E_GADCON_CLIENT_TYPE);
gcc->min.w = w;
gcc->min.h = h;
- if (!gcc->resizable)
+/* if (!gcc->resizable)*/
{
if (gcc->o_frame)
e_gadcon_layout_pack_min_size_set(gcc->o_frame, w + gcc->pad.w,
E_OBJECT_TYPE_CHECK(gcc, E_GADCON_CLIENT_TYPE);
gcc->aspect.w = w;
gcc->aspect.h = h;
- if ((!gcc->autoscroll) && (!gcc->resizable))
+ if ((!gcc->autoscroll)/* && (!gcc->resizable)*/)
{
if (gcc->o_frame)
{
{
E_OBJECT_CHECK(gcc);
E_OBJECT_TYPE_CHECK(gcc, E_GADCON_CLIENT_TYPE);
-
+/*
gcc->resizable = resizable;
if (gcc->resizable)
{
gcc->aspect.h);
}
}
+ */
+ resizable = 0;
+ gcc = NULL;
}
EAPI int
e_util_menu_item_theme_icon_set(mi, "transform-scale");
e_menu_item_callback_set(mi, _e_gadcon_client_cb_menu_edit, gcc);
}
-
+/*
mi = e_menu_item_new(menu_gadget);
e_menu_item_label_set(mi, _("Resizeable"));
e_util_menu_item_theme_icon_set(mi, "transform-scale");
e_menu_item_check_set(mi, 1);
if (gcc->resizable) e_menu_item_toggle_set(mi, 1);
e_menu_item_callback_set(mi, _e_gadcon_client_cb_menu_resizable, gcc);
-
+ */
mi = e_menu_item_new(menu_gadget);
e_menu_item_label_set(mi, _("Automatically scroll contents"));
e_util_menu_item_theme_icon_set(mi, "transform-move");
Evas_Coord w, h;
evas_object_geometry_get(gcc->o_box, NULL, NULL, &w, &h);
+/*
if (gcc->resizable)
{
if (e_box_orientation_get(gcc->o_box))
h = (w * gcc->aspect.h) / gcc->aspect.w;
}
}
+ */
if (gcc->autoscroll)
{
if (e_box_orientation_get(gcc->o_box))
gcc->cf->style = NULL;
if (gcc->style)
gcc->cf->style = eina_stringshare_add(gcc->style);
- gcc->cf->resizable = gcc->resizable;
+/* gcc->cf->resizable = gcc->resizable;*/
+ gcc->cf->resizable = 0;
e_config_save_queue();
}
e_gadcon_layout_pack_options_set(new_gcc->o_base, new_gcc);
e_gadcon_client_autoscroll_set(new_gcc, gcc->autoscroll);
- e_gadcon_client_resizable_set(new_gcc, gcc->resizable);
+/* e_gadcon_client_resizable_set(new_gcc, gcc->resizable);*/
if (new_gcc->client_class->func.orient)
new_gcc->client_class->func.orient(new_gcc, gc->orient);
new_gcc->state_info.resist = 1;
_e_gadcon_client_save(gcc);
e_gadcon_layout_thaw(gcc->gadcon->o_container);
}
-
+/*
static void
_e_gadcon_client_cb_menu_resizable(void *data, E_Menu *m __UNUSED__, E_Menu_Item *mi __UNUSED__)
{
_e_gadcon_client_save(gcc);
e_gadcon_layout_thaw(gcc->gadcon->o_container);
}
-
+*/
static void
_e_gadcon_client_cb_menu_edit(void *data, E_Menu *m __UNUSED__, E_Menu_Item *mi __UNUSED__)
{