davemds pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0d5bc403c6a8af813c2864c22b97d1c80f1d62d8

commit 0d5bc403c6a8af813c2864c22b97d1c80f1d62d8
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Sun Aug 13 08:40:45 2017 +0200

    pkit gadget: popup title in bold
---
 src/modules/packagekit/e_mod_packagekit.c | 14 +++++++-------
 src/modules/packagekit/e_mod_packagekit.h |  2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/modules/packagekit/e_mod_packagekit.c 
b/src/modules/packagekit/e_mod_packagekit.c
index 587df6453..5bf4fafd3 100644
--- a/src/modules/packagekit/e_mod_packagekit.c
+++ b/src/modules/packagekit/e_mod_packagekit.c
@@ -165,7 +165,7 @@ _help_button_cb(void *data, Evas_Object *obj EINA_UNUSED,
               inst->ctxt->v_maj, inst->ctxt->v_min, inst->ctxt->v_mic);
    else
      snprintf(buf, sizeof(buf), _("Unknow PackageKit version"));
-   elm_object_text_set(inst->popup_label, buf);
+   elm_object_text_set(inst->popup_title_entry, buf);
 }
 
 static void
@@ -205,7 +205,6 @@ _run_button_cb(void *data, Evas_Object *obj EINA_UNUSED,
                void *event EINA_UNUSED)
 {
    E_PackageKit_Instance *inst = data;
-   E_PackageKit_Module_Context *ctxt = inst->ctxt;
    packagekit_popup_del(inst);
 
    e_exec(inst->gcc->gadcon->zone, NULL,
@@ -231,7 +230,7 @@ packagekit_popup_update(E_PackageKit_Instance *inst, 
Eina_Bool rebuild_list)
 
    if (ctxt->error)
      {
-        elm_object_text_set(inst->popup_label, _("No information available"));
+        elm_object_text_set(inst->popup_title_entry, _("No information 
available"));
         elm_object_text_set(inst->popup_error_label, ctxt->error);
         if ((ctxt->v_maj != -1) && (ctxt->v_min != -1) && (ctxt->v_mic != -1))
           {
@@ -266,7 +265,7 @@ packagekit_popup_update(E_PackageKit_Instance *inst, 
Eina_Bool rebuild_list)
      snprintf(buf, sizeof(buf), P_("One update available", "%d updates 
available", num_updates), num_updates);
    else
      snprintf(buf, sizeof(buf), _("Your system is updated"));
-   elm_object_text_set(inst->popup_label, buf);
+   elm_object_text_set(inst->popup_title_entry, buf);
    elm_object_text_set(inst->popup_error_label, "");
    
    // update the status of the install button
@@ -451,9 +450,10 @@ packagekit_popup_new(E_PackageKit_Instance *inst)
    evas_object_show(bx);
 
    // title label
-   lb = inst->popup_label = elm_label_add(table);
+   lb = inst->popup_title_entry = elm_entry_add(table);
    evas_object_size_hint_expand_set(lb, EVAS_HINT_EXPAND, 0.0);
-   evas_object_size_hint_align_set(lb, 0.0, 0.5);
+   evas_object_size_hint_align_set(lb, EVAS_HINT_FILL, 0.5);
+   elm_entry_text_style_user_push(lb, "DEFAULT='font_weight=Bold'");
    elm_box_pack_end(bx, lb);
    evas_object_show(lb);
 
@@ -566,7 +566,7 @@ void
 packagekit_popup_del(E_PackageKit_Instance *inst)
 {
    E_FREE_FUNC(inst->popup, e_object_del);
-   inst->popup_genlist = inst->popup_label = inst->popup_progressbar = NULL;
+   inst->popup_genlist = inst->popup_title_entry = inst->popup_progressbar = 
NULL;
    if (inst->popup_genlist_itc)
      {
         elm_genlist_item_class_free(inst->popup_genlist_itc);
diff --git a/src/modules/packagekit/e_mod_packagekit.h 
b/src/modules/packagekit/e_mod_packagekit.h
index 846136301..47c772ab6 100644
--- a/src/modules/packagekit/e_mod_packagekit.h
+++ b/src/modules/packagekit/e_mod_packagekit.h
@@ -78,7 +78,7 @@ typedef struct _E_PackageKit_Instance
    E_Gadcon_Client *gcc;
    Evas_Object *gadget;
    E_Gadcon_Popup *popup;
-   Evas_Object *popup_label;
+   Evas_Object *popup_title_entry;
    Evas_Object *popup_error_label;
    Evas_Object *popup_install_button;
    Evas_Object *popup_progressbar;

-- 


Reply via email to