feat(Tray): handle click

This commit is contained in:
Alexis
2018-09-17 23:32:05 +02:00
parent 3e2e1a7018
commit fcdb8387af
2 changed files with 38 additions and 1 deletions

View File

@ -33,10 +33,14 @@ class Item {
private:
static void proxyReady(GObject* obj, GAsyncResult* res, gpointer data);
static void getAll(GObject* obj, GAsyncResult* res, gpointer data);
static void handleActivate(GObject*, GAsyncResult*, gpointer);
static void handleSecondaryActivate(GObject*, GAsyncResult*, gpointer);
void updateImage();
Glib::RefPtr<Gdk::Pixbuf> extractPixBuf(GVariant* variant);
Glib::RefPtr<Gdk::Pixbuf> getIconByName(std::string name, int size);
bool handleClick(GdkEventButton* const& /*ev*/);
Glib::Dispatcher* dp_;
GCancellable* cancellable_ = nullptr;
SnOrgKdeStatusNotifierItem* proxy_ = nullptr;