Add a PSP (Playstation portable) icon

SVN revision: 38769
This commit is contained in:
Davide Andreoli 2009-01-25 03:29:33 +00:00
parent eeed440f90
commit 9d1cdbdb74
4 changed files with 13 additions and 1 deletions

View File

@ -26,6 +26,7 @@ EXTRA_DIST = $(files_DATA) \
images/icon_ms.png \
images/icon_sdmmc.png \
images/icon_vfat.png \
images/icon_psp.png \
fonts/VeraBd.ttf \
fonts/Vera.ttf

View File

@ -12,6 +12,7 @@ images
image: "icon_ext3.png" COMP;
image: "icon_vfat.png" COMP;
image: "icon_hfs.png" COMP;
image: "icon_psp.png" COMP;
}
#define ICONS(_name) \
@ -69,6 +70,7 @@ collections
ICONS("hfs");
ICONS("vfat");
ICONS("ms");
ICONS("psp");
/****************************************************/
/** GADGET VOLUME *********************************/
/****************************************************/
@ -446,6 +448,12 @@ collections
action: STATE_SET "vert" 0.0;
target: "separator";
}
program { name: "set_separator_hidden";
signal: "separator,set,hidden";
source: "places";
action: STATE_SET "default" 0.0;
target: "separator";
}
}
}
}

BIN
images/icon_psp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -180,6 +180,8 @@ places_fill_box(Evas_Object *box)
else
vol->icon = "modules/places/icon/cdrom";
}
else if (!strcmp(vol->model, "\"PSP\" MS"))
vol->icon = "modules/places/icon/psp";
else if (!strcmp(vol->drive_type, "sd_mmc"))
vol->icon = "modules/places/icon/sdmmc";
else if (!strcmp(vol->drive_type, "memory_stick"))
@ -210,6 +212,7 @@ places_fill_box(Evas_Object *box)
else
edje_object_signal_emit(o, "icon,eject,hide", "places");
/* orient the separator*/
if (!e_box_orientation_get(box))
edje_object_signal_emit(o, "separator,set,horiz", "places");
@ -915,7 +918,7 @@ _places_storage_properties_cb(void *data, void *reply_data, DBusError *error)
//~ s->icon.drive = e_hal_property_string_get(ret, "storage.icon.drive", &err);
//~ s->icon.volume = e_hal_property_string_get(ret, "storage.icon.volume", &err);
//_places_print_volume(v); //Use this for debug
_places_print_volume(v); //Use this for debug
v->valid = 1;
if (v->to_mount && !v->mounted)