summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2020-06-30 14:03:18 +0100
committerAlastair Poole <netstar@gmail.com>2020-06-30 14:03:18 +0100
commitb799de0a1d1d580d863a359dd497598cd4f0c48d (patch)
treed3a7504525f5f832e16d3b02870418577921a400
parenta5461ad41652446b39e5a21494949f215eb6c94d (diff)
views: make windows dialog windows.
This is handy in a few ways.
-rw-r--r--src/bin/ui/ui_cpu.c3
-rw-r--r--src/bin/ui/ui_disk.c3
-rw-r--r--src/bin/ui/ui_memory.c3
-rw-r--r--src/bin/ui/ui_misc.c2
4 files changed, 7 insertions, 4 deletions
diff --git a/src/bin/ui/ui_cpu.c b/src/bin/ui/ui_cpu.c
index 01adbad..69148e1 100644
--- a/src/bin/ui/ui_cpu.c
+++ b/src/bin/ui/ui_cpu.c
@@ -209,7 +209,8 @@ ui_win_cpu_add(Ui *ui)
209 209
210 if (ui->win_cpu) return; 210 if (ui->win_cpu) return;
211 211
212 ui->win_cpu = win = elm_win_util_standard_add("evisum", _("CPU Usage")); 212 ui->win_cpu = win = elm_win_util_dialog_add(ui->win, "evisum",
213 _("CPU Usage"));
213 evas_object_size_hint_weight_set(win, EXPAND, EXPAND); 214 evas_object_size_hint_weight_set(win, EXPAND, EXPAND);
214 evas_object_size_hint_align_set(win, FILL, FILL); 215 evas_object_size_hint_align_set(win, FILL, FILL);
215 216
diff --git a/src/bin/ui/ui_disk.c b/src/bin/ui/ui_disk.c
index 0acb787..0f54dec 100644
--- a/src/bin/ui/ui_disk.c
+++ b/src/bin/ui/ui_disk.c
@@ -173,7 +173,8 @@ ui_win_disk_add(Ui *ui)
173 173
174 if (ui->win_disk) return; 174 if (ui->win_disk) return;
175 175
176 ui->win_disk = win = elm_win_util_standard_add("evisum", _("Storage")); 176 ui->win_disk = win = elm_win_util_dialog_add(ui->win, "evisum",
177 _("Storage"));
177 evas_object_size_hint_weight_set(win, EXPAND, EXPAND); 178 evas_object_size_hint_weight_set(win, EXPAND, EXPAND);
178 evas_object_size_hint_align_set(win, FILL, FILL); 179 evas_object_size_hint_align_set(win, FILL, FILL);
179 180
diff --git a/src/bin/ui/ui_memory.c b/src/bin/ui/ui_memory.c
index 49c613f..bb18f84 100644
--- a/src/bin/ui/ui_memory.c
+++ b/src/bin/ui/ui_memory.c
@@ -130,7 +130,8 @@ ui_win_memory_add(Ui *ui)
130 Widgets *widgets = calloc(1, sizeof(Widgets)); 130 Widgets *widgets = calloc(1, sizeof(Widgets));
131 if (!widgets) return; 131 if (!widgets) return;
132 132
133 ui->win_mem = win = elm_win_util_standard_add("evisum", _("Memory Usage")); 133 ui->win_mem = win = elm_win_util_dialog_add(ui->win, "evisum",
134 _("Memory Usage"));
134 evas_object_size_hint_weight_set(win, EXPAND, EXPAND); 135 evas_object_size_hint_weight_set(win, EXPAND, EXPAND);
135 evas_object_size_hint_align_set(win, FILL, FILL); 136 evas_object_size_hint_align_set(win, FILL, FILL);
136 137
diff --git a/src/bin/ui/ui_misc.c b/src/bin/ui/ui_misc.c
index 4f3aa89..91abeb7 100644
--- a/src/bin/ui/ui_misc.c
+++ b/src/bin/ui/ui_misc.c
@@ -346,7 +346,7 @@ ui_win_misc_add(Ui *ui)
346 346
347 if (ui->win_misc) return; 347 if (ui->win_misc) return;
348 348
349 ui->win_misc = win = elm_win_util_standard_add("evisum", _("Stuff")); 349 ui->win_misc = win = elm_win_util_dialog_add(ui->win, "evisum", _("Stuff"));
350 evas_object_size_hint_weight_set(win, EXPAND, EXPAND); 350 evas_object_size_hint_weight_set(win, EXPAND, EXPAND);
351 evas_object_size_hint_align_set(win, FILL, FILL); 351 evas_object_size_hint_align_set(win, FILL, FILL);
352 352