Ephoto: Don't send unnecessary signals now that we are not showing/hiding panels in edje.

master
Stephen 'Okra' Houston 5 years ago
parent 76a02499ab
commit 788863df68
  1. 7
      src/bin/ephoto_directory_browser.c
  2. 6
      src/bin/ephoto_editor.c
  3. 2
      src/bin/ephoto_single_browser.c

@ -679,15 +679,8 @@ _go_home(void *data, Evas_Object *obj EINA_UNUSED, void *event_data EINA_UNUSED)
static void
_ephoto_directory_view_add(Ephoto_Directory_Browser *db)
{
Edje_Message_Int_Set *msg;
Evas_Object *ic, *but;
msg = alloca(sizeof(Edje_Message_Int_Set) + (1 * sizeof(int)));
msg->count = 1;
msg->val[0] = (int)round(220 * elm_config_scale_get());
edje_object_message_send(elm_layout_edje_get(db->ephoto->layout),
EDJE_MESSAGE_INT_SET, 1, msg);
db->leftbox = elm_box_add(db->main);
elm_box_horizontal_set(db->leftbox, EINA_FALSE);
elm_box_homogeneous_set(db->leftbox, EINA_FALSE);

@ -27,9 +27,6 @@ ephoto_editor_add(Ephoto *ephoto, Evas_Object *parent, const char *title, const
{
Evas_Object *frame, *box, *ic, *button;
edje_object_signal_emit(elm_layout_edje_get(ephoto->layout),
"ephoto,folders,hide", "ephoto");
frame = elm_frame_add(parent);
elm_object_text_set(frame, title);
EPHOTO_WEIGHT(frame, 0.3, EVAS_HINT_EXPAND);
@ -94,9 +91,6 @@ ephoto_editor_add(Ephoto *ephoto, Evas_Object *parent, const char *title, const
elm_box_pack_end(box, button);
evas_object_show(button);
edje_object_signal_emit(elm_layout_edje_get(ephoto->layout),
"ephoto,editor,show", "ephoto");
return box;
}

@ -1843,8 +1843,6 @@ _editor_menu(void *data, Evas_Object *obj EINA_UNUSED, void *event_data EINA_UNU
_edit_function_item_add(vbox, "edit-clear", _("Reset"), _reset_image, sb);
_edit_function_item_add(vbox, "window-close", _("Close"), _close_editor, sb);
edje_object_signal_emit(elm_layout_edje_get(sb->ephoto->layout),
"ephoto,editor,show", "ephoto");
sb->edit_main = frame;
}

Loading…
Cancel
Save