35
35
#include <gconf/gconf-client.h>
38
class PlacesHomeView : public Introspectable, public PlacesGroup
38
class PlacesHomeView : public unity::Introspectable, public PlacesGroup
47
47
// Introspectable methods
48
const gchar * GetName ();
49
const gchar * GetChildsName ();
50
void AddProperties (GVariantBuilder *builder);
53
static void DashVisible (GVariant *data, void *val);
54
void OnShortcutClicked (PlacesTile *_tile);
55
static void OnKeyChanged (GConfClient *client,
58
PlacesHomeView *self);
59
void CreateShortcutFromExec (const char *exec,
61
std::vector<std::string>& alternatives);
64
nux::GridHLayout *_layout;
48
const gchar* GetName();
49
const gchar* GetChildsName();
50
void AddProperties(GVariantBuilder* builder);
53
static void DashVisible(GVariant* data, void* val);
54
void OnShortcutClicked(PlacesTile* _tile);
55
static void OnKeyChanged(GConfClient* client,
58
PlacesHomeView* self);
59
void CreateShortcutFromExec(const char* exec,
61
std::vector<std::string>& alternatives);
64
nux::GridHLayout* _layout;
66
66
std::vector<std::string> _browser_alternatives;
67
67
std::vector<std::string> _photo_alternatives;
68
68
std::vector<std::string> _email_alternatives;
69
69
std::vector<std::string> _music_alternatives;
71
struct timespec time_diff (struct timespec start, struct timespec end);
71
struct timespec time_diff(struct timespec start, struct timespec end);
72
72
struct timespec _last_activate_time;
74
74
guint _ubus_handle;