davemds pushed a commit to branch master.

http://git.enlightenment.org/enlightenment/modules/packagekit.git/commit/?id=72ada726780637fb13e3c1164a12b16f1b7628ff

commit 72ada726780637fb13e3c1164a12b16f1b7628ff
Author: davemds <d...@gurumeditation.it>
Date:   Sat Nov 16 14:26:38 2013 +0100

    popup: moved the "reload packages" button in the top-right with just a 
small icon
---
 src/e_mod_packagekit.c | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/e_mod_packagekit.c b/src/e_mod_packagekit.c
index 883cd81..e47b671 100644
--- a/src/e_mod_packagekit.c
+++ b/src/e_mod_packagekit.c
@@ -139,31 +139,32 @@ _popup_del_cb(void *obj)
 void
 packagekit_popup_new(E_PackageKit_Instance *inst)
 {
-   Evas_Object *list, *bt;
+   Evas_Object *table, *bt;
    Evas *evas;
 
    inst->popup = e_gadcon_popup_new(inst->gcc);
    evas = inst->popup->win->evas;
 
-   list = e_widget_list_add(evas, 0, 0);
+   table = e_widget_table_add(evas, 0);
 
    inst->popup_label = e_widget_label_add(evas, NULL);
-   e_widget_list_object_append(list, inst->popup_label, 1, 1, 0.5);
+   e_widget_table_object_append(table, inst->popup_label, 0,0, 1,1, 1,0,1,0);
+
+   bt = e_widget_button_add(evas, NULL, "view-refresh",
+                            _update_button_cb, inst, NULL);
+   e_widget_table_object_append(table, bt, 1,0, 1,1, 0,0,0,0);
 
    inst->popup_ilist = e_widget_ilist_add(evas, 24, 24, NULL);
    e_widget_size_min_set(inst->popup_ilist, 240, 200);
-   e_widget_list_object_append(list, inst->popup_ilist, 1, 1, 0.5);
+   e_widget_table_object_append(table, inst->popup_ilist, 0,1, 2,1, 1,1,0,0);
 
-   bt = e_widget_button_add(evas, D_("Update packages cache"), NULL,
-                            _update_button_cb, inst, NULL);
-   e_widget_list_object_append(list, bt, 1, 1, 0.5);
    bt = e_widget_button_add(evas, D_("Run the package manager"), NULL,
                             _run_button_cb, inst, NULL);
-   e_widget_list_object_append(list, bt, 1, 1, 0.5);
+   e_widget_table_object_append(table, bt, 0,3, 2,1, 1,0,0,0);
 
    packagekit_popup_update(inst);
 
-   e_gadcon_popup_content_set(inst->popup, list);
+   e_gadcon_popup_content_set(inst->popup, table);
    e_popup_autoclose(inst->popup->win, NULL, NULL, NULL);
    e_gadcon_popup_show(inst->popup);
    e_object_data_set(E_OBJECT(inst->popup), inst);

-- 


Reply via email to