make the header a big button, pressing will open home dir
SVN revision: 67514
This commit is contained in:
parent
58d52b9d24
commit
45dece9913
|
@ -10,6 +10,8 @@ images
|
||||||
image: "tag_ufs.png" COMP;
|
image: "tag_ufs.png" COMP;
|
||||||
image: "tag_dvd.png" COMP;
|
image: "tag_dvd.png" COMP;
|
||||||
image: "header_bg.png" COMP;
|
image: "header_bg.png" COMP;
|
||||||
|
image: "header_down.png" COMP;
|
||||||
|
image: "home.png" COMP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,9 +44,29 @@ collections
|
||||||
mouse_events: 1;
|
mouse_events: 1;
|
||||||
type: IMAGE;
|
type: IMAGE;
|
||||||
description { state: "default" 0.0;
|
description { state: "default" 0.0;
|
||||||
color: 255 255 255 255;
|
color: 255 255 255 200;
|
||||||
image.normal: "header_bg.png";
|
image.normal: "header_bg.png";
|
||||||
}
|
}
|
||||||
|
description { state: "down" 0.0;
|
||||||
|
color: 255 255 255 200;
|
||||||
|
image.normal: "header_down.png";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
part { name: "home";
|
||||||
|
mouse_events: 1;
|
||||||
|
repeat_events: 1;
|
||||||
|
type: IMAGE;
|
||||||
|
description { state: "default" 0.0;
|
||||||
|
aspect: 1 1;
|
||||||
|
aspect_preference: VERTICAL;
|
||||||
|
align: 1.0 0.5;
|
||||||
|
color: 255 255 255 150;
|
||||||
|
image.normal: "home.png";
|
||||||
|
}
|
||||||
|
description { state: "hilight" 0.0;
|
||||||
|
inherit: "default" 0.0;
|
||||||
|
color: 255 255 255 255;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
part { name: "label";
|
part { name: "label";
|
||||||
mouse_events: 0;
|
mouse_events: 0;
|
||||||
|
@ -107,6 +129,34 @@ collections
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
programs {
|
programs {
|
||||||
|
/** INTERNAL PROGRAMS *****************************/
|
||||||
|
program { name: "header_mouse_in";
|
||||||
|
signal: "mouse,in";
|
||||||
|
source: "bg";
|
||||||
|
action: STATE_SET "hilight" 0.0;
|
||||||
|
transition: SINUSOIDAL 0.4;
|
||||||
|
target: "home";
|
||||||
|
}
|
||||||
|
program { name: "header_mouse_out";
|
||||||
|
signal: "mouse,out";
|
||||||
|
source: "bg";
|
||||||
|
action: STATE_SET "default" 0.0;
|
||||||
|
transition: SINUSOIDAL 0.4;
|
||||||
|
target: "home";
|
||||||
|
}
|
||||||
|
program { name: "header_mouse_down";
|
||||||
|
signal: "mouse,down,1";
|
||||||
|
source: "bg";
|
||||||
|
action: STATE_SET "down" 0.0;
|
||||||
|
target: "bg";
|
||||||
|
}
|
||||||
|
program { name: "header_mouse_up";
|
||||||
|
signal: "mouse,up,1";
|
||||||
|
source: "bg";
|
||||||
|
action: STATE_SET "default" 0.0;
|
||||||
|
target: "bg";
|
||||||
|
}
|
||||||
|
/** SIGNALS RECEIVED FROM THE MODULE **************/
|
||||||
program { name: "set_separator_horiz";
|
program { name: "set_separator_horiz";
|
||||||
signal: "separator,set,horiz";
|
signal: "separator,set,horiz";
|
||||||
source: "places";
|
source: "places";
|
||||||
|
@ -128,6 +178,12 @@ collections
|
||||||
target: "separator";
|
target: "separator";
|
||||||
target: "separator2";
|
target: "separator2";
|
||||||
}
|
}
|
||||||
|
/** SIGNALS EMITTED TO THE MODULE **************/
|
||||||
|
program { name: "header_activated";
|
||||||
|
signal: "mouse,clicked,1";
|
||||||
|
source: "bg";
|
||||||
|
action: SIGNAL_EMIT "header,activated" "places";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/****************************************************/
|
/****************************************************/
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
|
@ -22,7 +22,7 @@ static void _places_volume_object_update(Volume *vol, Evas_Object *obj);
|
||||||
void _places_icon_activated_cb(void *data, Evas_Object *o, const char *emission, const char *source);
|
void _places_icon_activated_cb(void *data, Evas_Object *o, const char *emission, const char *source);
|
||||||
void _places_custom_icon_activated_cb(void *data, Evas_Object *o, const char *emission, const char *source);
|
void _places_custom_icon_activated_cb(void *data, Evas_Object *o, const char *emission, const char *source);
|
||||||
void _places_eject_activated_cb(void *data, Evas_Object *o, const char *emission, const char *source);
|
void _places_eject_activated_cb(void *data, Evas_Object *o, const char *emission, const char *source);
|
||||||
|
void _places_header_activated_cb(void *data, Evas_Object *o, const char *emission, const char *source);
|
||||||
|
|
||||||
/* Local Variables */
|
/* Local Variables */
|
||||||
static Ecore_Timer *poller = NULL;
|
static Ecore_Timer *poller = NULL;
|
||||||
|
@ -234,6 +234,8 @@ places_fill_box(Evas_Object *box)
|
||||||
min_w, min_h, /* min */
|
min_w, min_h, /* min */
|
||||||
max_w, max_h /* max */
|
max_w, max_h /* max */
|
||||||
);
|
);
|
||||||
|
edje_object_signal_callback_add(o, "header,activated", "places",
|
||||||
|
_places_header_activated_cb, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// volume objects
|
// volume objects
|
||||||
|
@ -687,6 +689,12 @@ _places_eject_activated_cb(void *data, Evas_Object *o, const char *emission, con
|
||||||
places_volume_eject(vol);
|
places_volume_eject(vol);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
_places_header_activated_cb(void *data, Evas_Object *o, const char *emission, const char *source)
|
||||||
|
{
|
||||||
|
_places_run_fm((char*)e_user_homedir_get(), NULL, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* E17 menu augmentation */
|
/* E17 menu augmentation */
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue