forked from enlightenment/evisum
views: make windows dialog windows.
This is handy in a few ways.
This commit is contained in:
parent
a5461ad416
commit
b799de0a1d
|
@ -209,7 +209,8 @@ ui_win_cpu_add(Ui *ui)
|
|||
|
||||
if (ui->win_cpu) return;
|
||||
|
||||
ui->win_cpu = win = elm_win_util_standard_add("evisum", _("CPU Usage"));
|
||||
ui->win_cpu = win = elm_win_util_dialog_add(ui->win, "evisum",
|
||||
_("CPU Usage"));
|
||||
evas_object_size_hint_weight_set(win, EXPAND, EXPAND);
|
||||
evas_object_size_hint_align_set(win, FILL, FILL);
|
||||
|
||||
|
|
|
@ -173,7 +173,8 @@ ui_win_disk_add(Ui *ui)
|
|||
|
||||
if (ui->win_disk) return;
|
||||
|
||||
ui->win_disk = win = elm_win_util_standard_add("evisum", _("Storage"));
|
||||
ui->win_disk = win = elm_win_util_dialog_add(ui->win, "evisum",
|
||||
_("Storage"));
|
||||
evas_object_size_hint_weight_set(win, EXPAND, EXPAND);
|
||||
evas_object_size_hint_align_set(win, FILL, FILL);
|
||||
|
||||
|
|
|
@ -130,7 +130,8 @@ ui_win_memory_add(Ui *ui)
|
|||
Widgets *widgets = calloc(1, sizeof(Widgets));
|
||||
if (!widgets) return;
|
||||
|
||||
ui->win_mem = win = elm_win_util_standard_add("evisum", _("Memory Usage"));
|
||||
ui->win_mem = win = elm_win_util_dialog_add(ui->win, "evisum",
|
||||
_("Memory Usage"));
|
||||
evas_object_size_hint_weight_set(win, EXPAND, EXPAND);
|
||||
evas_object_size_hint_align_set(win, FILL, FILL);
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ ui_win_misc_add(Ui *ui)
|
|||
|
||||
if (ui->win_misc) return;
|
||||
|
||||
ui->win_misc = win = elm_win_util_standard_add("evisum", _("Stuff"));
|
||||
ui->win_misc = win = elm_win_util_dialog_add(ui->win, "evisum", _("Stuff"));
|
||||
evas_object_size_hint_weight_set(win, EXPAND, EXPAND);
|
||||
evas_object_size_hint_align_set(win, FILL, FILL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue