Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
bin: Switch settings dialog from elm_win_util_dialog to elm_win_inwin
Browse files Browse the repository at this point in the history
The inner dialog window seemed to be causing some problems, like the one
reported in issue #26. Running stand alone without a window manager.
Switching from a dialog window with title/action border to a window
inside a window. That you cannot move, resize or close without using
the close button. This should resolve issue #26.

#26
  • Loading branch information
wltjr committed Aug 2, 2018
1 parent 4beabd1 commit b264e55
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/bin/ui/settings_dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,7 @@ ui_settings_dialog_open(Evas_Object *parent, Ecrire_Doc *doc, Ent_Cfg *_ent_cfg)
Evas_Object *tb;
Evas_Object *win;

win = elm_win_util_dialog_add (parent, _("ecrire"), _("Settings"));
elm_win_autodel_set(win, EINA_TRUE);
evas_object_smart_callback_add(win, "delete,request", settings_delete_cb, NULL);
win = elm_win_inwin_add (parent);
evas_object_geometry_get(ecrire_win_get(), NULL, NULL, &w, &h);

boxh = elm_box_add(win);
Expand All @@ -531,7 +529,7 @@ ui_settings_dialog_open(Evas_Object *parent, Ecrire_Doc *doc, Ent_Cfg *_ent_cfg)
evas_object_size_hint_weight_set(boxv, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(boxv, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_box_horizontal_set(boxv, EINA_FALSE);
elm_win_resize_object_add(win, boxv);
elm_win_inwin_content_set(win, boxv);
evas_object_show(boxv);

tb = elm_toolbar_add(win);
Expand Down Expand Up @@ -584,8 +582,7 @@ ui_settings_dialog_open(Evas_Object *parent, Ecrire_Doc *doc, Ent_Cfg *_ent_cfg)
evas_object_show (obj);

evas_object_resize(win, w * 0.8, h * 0.8);
elm_win_raise (win);
evas_object_show (win);
elm_win_inwin_activate (win);

return win;
}

0 comments on commit b264e55

Please sign in to comment.