Icon work. HUGE revision of icons and their names. This breaks the icon theme API...
authortoma <toma>
Sun, 12 Oct 2008 06:04:26 +0000 (06:04 +0000)
committertoma <toma@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 12 Oct 2008 06:04:26 +0000 (06:04 +0000)
SVN revision: 36591

13 files changed:
data/themes/default_icons.edc
src/bin/e_gadcon.c
src/bin/e_int_menus.c
src/bin/e_shelf.c
src/bin/e_toolbar.c
src/modules/battery/e_mod_main.c
src/modules/conf_desklock/e_int_config_desklock.c
src/modules/conf_wallpaper/e_int_config_wallpaper_gradient.c
src/modules/ibar/e_mod_main.c
src/modules/ibox/e_mod_main.c
src/modules/mixer/e_mod_main.c
src/modules/pager/e_mod_main.c
src/modules/temperature/e_mod_main.c

index f9fd886..b87891e 100644 (file)
@@ -2429,6 +2429,26 @@ group {
 }
 
 group {
+   name: "e/icons/widget/resize";
+   max:  64 64;
+   parts {
+      part {
+        name:          "icon";
+        mouse_events:  0;
+        description {
+           state:    "default" 0.0;
+           aspect:   1.0 1.0;
+           aspect_preference: BOTH;
+           max:      64 64;
+           image {
+              normal: "e17_icon_configuration.png";
+           }
+        }
+      }
+   }
+}
+
+group {
    name: "e/icons/widget/new_dialog";
    parts {
       part {
index 0474ec4..57d0b00 100644 (file)
@@ -1242,7 +1242,7 @@ e_gadcon_client_util_menu_items_append(E_Gadcon_Client *gcc, E_Menu *menu, int f
 
        mi = e_menu_item_new(menu);
        e_menu_item_label_set(mi, _("Able to be resized"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/resizable");
+       e_util_menu_item_edje_icon_set(mi, "widget/resize");
        e_menu_item_check_set(mi, 1);
        if (gcc->resizable) e_menu_item_toggle_set(mi, 1);
        e_menu_item_callback_set(mi, _e_gadcon_client_cb_menu_resizable, gcc);
@@ -1254,13 +1254,13 @@ e_gadcon_client_util_menu_items_append(E_Gadcon_Client *gcc, E_Menu *menu, int f
          {
                mi = e_menu_item_new(menu);
                e_menu_item_label_set(mi, _("Begin move/resize this gadget"));
-               e_util_menu_item_edje_icon_set(mi, "enlightenment/edit");
+               e_util_menu_item_edje_icon_set(mi, "widget/resize");
                e_menu_item_callback_set(mi, _e_gadcon_client_cb_menu_edit, gcc);
          }
 
        mi = e_menu_item_new(menu);
        e_menu_item_label_set(mi, _("Remove this gadget"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/remove");
+       e_util_menu_item_edje_icon_set(mi, "widget/del");
        e_menu_item_callback_set(mi, _e_gadcon_client_cb_menu_remove, gcc);
      }
    if (gcc->gadcon->menu_attach.func)
index 610ef0d..c159647 100644 (file)
@@ -759,6 +759,7 @@ _e_int_menus_virtuals_pre_cb(void *data, E_Menu *m)
 
        mi = e_menu_item_new(m);
        e_menu_item_label_set(mi, _("Configure Virtual Desktops"));
+       e_util_menu_item_edje_icon_set(mi, "widget/config");
        e_menu_item_callback_set(mi, _e_int_menus_desk_item_cb, NULL);
      }
 }
@@ -1579,12 +1580,14 @@ _e_int_menus_shelves_pre_cb(void *data, E_Menu *m)
 
    mi = e_menu_item_new(m);
    e_menu_item_label_set(mi, _("Add A Shelf"));
+   e_util_menu_item_edje_icon_set(mi, "widget/add");
    e_menu_item_callback_set(mi, _e_int_menus_shelves_add_cb, NULL);
 
    if (shelves)
      { 
        mi = e_menu_item_new(m);
        e_menu_item_label_set(mi, _("Delete A Shelf"));
+        e_util_menu_item_edje_icon_set(mi, "widget/del");
        e_menu_item_callback_set(mi, _e_int_menus_shelves_del_cb, NULL);
      } 
 }
index ca66ef6..b81bf16 100644 (file)
@@ -1646,7 +1646,7 @@ _e_shelf_menu_pre_cb(void *data, E_Menu *m)
      e_menu_item_label_set(mi, _("Stop Moving/Resizing Items"));
    else
      e_menu_item_label_set(mi, _("Begin Moving/Resizing Items"));
-   e_util_menu_item_edje_icon_set(mi, "enlightenment/edit");
+   e_util_menu_item_edje_icon_set(mi, "widget/resize");
    e_menu_item_callback_set(mi, _e_shelf_cb_menu_edit, es);
 
    mi = e_menu_item_new(m);
@@ -1654,7 +1654,7 @@ _e_shelf_menu_pre_cb(void *data, E_Menu *m)
 
    mi = e_menu_item_new(m);
    e_menu_item_label_set(mi, _("Shelf Configuration"));
-   e_util_menu_item_edje_icon_set(mi, "enlightenment/shelf");
+   e_util_menu_item_edje_icon_set(mi, "widget/config");
    e_menu_item_callback_set(mi, _e_shelf_cb_menu_config, es);
    
    mi = e_menu_item_new(m);
@@ -1664,7 +1664,7 @@ _e_shelf_menu_pre_cb(void *data, E_Menu *m)
    
    mi = e_menu_item_new(m);
    e_menu_item_label_set(mi, _("Delete this Shelf"));
-   e_util_menu_item_edje_icon_set(mi, "enlightenment/delete");
+   e_util_menu_item_edje_icon_set(mi, "widget/del");
    e_menu_item_callback_set(mi, _e_shelf_cb_menu_delete, es);   
 }
 
index 73b32f9..f499e34 100644 (file)
@@ -317,7 +317,7 @@ _e_toolbar_menu_cb_pre(void *data, E_Menu *mn)
      e_menu_item_label_set(mi, _("Stop Moving/Resizing Items"));
    else
      e_menu_item_label_set(mi, _("Begin Moving/Resizing Items"));
-   e_util_menu_item_edje_icon_set(mi, "enlightenment/edit");
+   e_util_menu_item_edje_icon_set(mi, "widget/resize");
    e_menu_item_callback_set(mi, _e_toolbar_menu_cb_edit, tbar);
 
    mi = e_menu_item_new(mn);
@@ -325,12 +325,12 @@ _e_toolbar_menu_cb_pre(void *data, E_Menu *mn)
 
    mi = e_menu_item_new(mn);
    e_menu_item_label_set(mi, _("Toolbar Configuration"));
-   e_util_menu_item_edje_icon_set(mi, "enlightenment/shelf");
+   e_util_menu_item_edje_icon_set(mi, "widget/config");
    e_menu_item_callback_set(mi, _e_toolbar_menu_cb_config, tbar);
 
    mi = e_menu_item_new(mn);
    e_menu_item_label_set(mi, _("Configure Toolbar Contents"));
-   e_util_menu_item_edje_icon_set(mi, "enlightenment/shelf");
+   e_util_menu_item_edje_icon_set(mi, "enlightenment/toolbar");
    e_menu_item_callback_set(mi, _e_toolbar_menu_cb_contents, tbar);
 }
 
@@ -352,7 +352,7 @@ _e_toolbar_menu_append(E_Toolbar *tbar, E_Menu *mn)
    subm = e_menu_new();
    mi = e_menu_item_new(mn);
    e_menu_item_label_set(mi, tbar->name);
-   e_util_menu_item_edje_icon_set(mi, "enlightenment/shelf");
+   e_util_menu_item_edje_icon_set(mi, "enlightenment/toolbar");
    e_menu_pre_activate_callback_set(subm, _e_toolbar_menu_cb_pre, tbar);
    e_object_free_attach_func_set(E_OBJECT(subm), _e_toolbar_menu_del_hook);
    e_menu_item_submenu_set(mi, subm);
index 74dbe5d..2fc1316 100644 (file)
@@ -170,7 +170,7 @@ _button_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
 
        mi = e_menu_item_new(mn);
        e_menu_item_label_set(mi, _("Configuration"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
+       e_util_menu_item_edje_icon_set(mi, "widget/config");
        e_menu_item_callback_set(mi, _battery_face_cb_menu_configure, NULL);
 
        e_gadcon_client_util_menu_items_append(inst->gcc, mn, 0);
index a0c9f17..c1077da 100644 (file)
@@ -197,7 +197,7 @@ _adv_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
    e_widget_table_object_append(rt, ow, 1, 0, 1, 1, 1, 1, 0, 0);
    e_widget_table_object_append(ft, rt, 0, 0, 1, 1, 0, 0, 0, 0);
    cfdata->o_btn = e_widget_button_add(evas, _("Go up a Directory"), 
-                                      "widgets/up_dir", _cb_button_up, 
+                                      "widget/up_dir", _cb_button_up, 
                                       cfdata, NULL);
    e_widget_table_object_append(ft, cfdata->o_btn, 0, 1, 1, 1, 0, 0, 0, 0);
 
index 7216dfe..9f4b1cf 100644 (file)
@@ -145,7 +145,7 @@ e_int_config_wallpaper_gradient(E_Config_Dialog *parent)
    e_widget_table_object_append(ott, o, 1, 2, 1, 1, 1, 1, 1, 1);
    import->well2 = o;
 
-   o = e_widget_button_add(evas, "Swap Colors", "enlightenment/swap", _import_cb_color_swap, import, NULL);
+   o = e_widget_button_add(evas, "Swap Colors", "widget/swap", _import_cb_color_swap, import, NULL);
    evas_object_show(o);
    e_widget_table_object_append(ott, o, 1, 3, 1, 1, 1, 1, 1, 1);
 
index be8641c..e563541 100644 (file)
@@ -313,7 +313,7 @@ _ibar_cb_empty_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_inf
 
        mi = e_menu_item_new(mn);
        e_menu_item_label_set(mi, _("Configuration"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
+       e_util_menu_item_edje_icon_set(mi, "widget/config");
        e_menu_item_callback_set(mi, _ibar_cb_menu_configuration, b);
 
        mi = e_menu_item_new(mn);
@@ -795,12 +795,12 @@ _ibar_cb_icon_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info
        /* FIXME: other icon options go here too */
        mi = e_menu_item_new(mn);
        e_menu_item_label_set(mi, _("Change Icon Properties"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/properties");
+       e_util_menu_item_edje_icon_set(mi, "widget/config");
        e_menu_item_callback_set(mi, _ibar_cb_menu_icon_properties, ic);
        
        mi = e_menu_item_new(mn);
        e_menu_item_label_set(mi, _("Remove Icon"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/delete");
+       e_util_menu_item_edje_icon_set(mi, "widget/del");
        e_menu_item_callback_set(mi, _ibar_cb_menu_icon_remove, ic);
 
        mi = e_menu_item_new(mn);
@@ -810,14 +810,14 @@ _ibar_cb_icon_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info
          {
             mi = e_menu_item_new(mn);
             e_menu_item_label_set(mi, _("Add An Icon"));
-            e_util_menu_item_edje_icon_set(mi, "enlightenment/ibar_applications");
+            e_util_menu_item_edje_icon_set(mi, "widget/add");
             e_menu_item_callback_set(mi, _ibar_cb_menu_icon_add, NULL);
          }
        if (e_configure_registry_exists("applications/new_application")) 
          {
             mi = e_menu_item_new(mn);
             e_menu_item_label_set(mi, _("Create New Icon"));
-            e_util_menu_item_edje_icon_set(mi, "enlightenment/new_application");
+            e_util_menu_item_edje_icon_set(mi, "widget/new");
             e_menu_item_callback_set(mi, _ibar_cb_menu_icon_new, NULL);
 
             mi = e_menu_item_new(mn);
@@ -826,14 +826,14 @@ _ibar_cb_icon_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info
 
        mi = e_menu_item_new(mn);
        e_menu_item_label_set(mi, _("Configuration"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
+       e_util_menu_item_edje_icon_set(mi, "widget/config");
        e_menu_item_callback_set(mi, _ibar_cb_menu_configuration, ic->ibar);
 
        if (e_configure_registry_exists("applications/ibar_applications")) 
          {
             mi = e_menu_item_new(mn);
             e_menu_item_label_set(mi, _("Add Application"));
-            e_util_menu_item_edje_icon_set(mi, "enlightenment/add");
+            e_util_menu_item_edje_icon_set(mi, "widget/add");
             e_menu_item_callback_set(mi, _ibar_cb_menu_add, ic->ibar);
          }
        
index 39fc99a..a24d239 100644 (file)
@@ -307,7 +307,7 @@ _ibox_cb_empty_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_inf
 
        mi = e_menu_item_new(mn);
        e_menu_item_label_set(mi, _("Configuration"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
+       e_util_menu_item_edje_icon_set(mi, "widget/config");
        e_menu_item_callback_set(mi, _ibox_cb_menu_configuration, b);
 
        mi = e_menu_item_new(mn);
@@ -705,7 +705,7 @@ _ibox_cb_icon_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info
        /* FIXME: other icon options go here too */
        mi = e_menu_item_new(mn);
        e_menu_item_label_set(mi, _("Configuration"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
+       e_util_menu_item_edje_icon_set(mi, "widget/config");
        e_menu_item_callback_set(mi, _ibox_cb_menu_configuration, ic->ibox);
 
        mi = e_menu_item_new(mn);
index 7a4b6ca..609eba5 100644 (file)
@@ -665,7 +665,7 @@ _mixer_menu_new(E_Mixer_Instance *inst, Evas_Event_Mouse_Down *ev)
 
    mi = e_menu_item_new(mn);
    e_menu_item_label_set(mi, _("Configuration"));
-   e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
+   e_util_menu_item_edje_icon_set(mi, "widget/config");
    e_menu_item_callback_set(mi, _mixer_menu_cb_cfg, inst);
 
    e_gadcon_client_util_menu_items_append(inst->gcc, mn, 0);
index 9abcdca..71e75cd 100644 (file)
@@ -802,14 +802,14 @@ _button_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
 
        mi = e_menu_item_new(mn);
        e_menu_item_label_set(mi, _("Configuration"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
+       e_util_menu_item_edje_icon_set(mi, "widget/config");
        e_menu_item_callback_set(mi, _pager_inst_cb_menu_configure, NULL);
 
        if (e_configure_registry_exists("screen/virtual_desktops"))
          {
             mi = e_menu_item_new(mn);
             e_menu_item_label_set(mi, _("Virtual Desktops Configuration"));
-            e_util_menu_item_edje_icon_set(mi, "enlightenment/vdesktops");
+            e_util_menu_item_edje_icon_set(mi, "enlightenment/desktops");
             e_menu_item_callback_set(mi, _pager_inst_cb_menu_virtual_desktops_dialog, inst);
          }
 
index 4bba28e..cc608df 100644 (file)
@@ -304,7 +304,7 @@ _temperature_face_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *eve
        
        mi = e_menu_item_new(mn);
        e_menu_item_label_set(mi, _("Configuration"));
-       e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
+       e_util_menu_item_edje_icon_set(mi, "widget/config");
        e_menu_item_callback_set(mi, _temperature_face_cb_menu_configure, inst);
        
        e_gadcon_client_util_menu_items_append(inst->gcc, mn, 0);