Why add <gio/gio.h> ?
Instead of assigning, use reset:
proxy_.reset(new unity::glib::DBusProxy("org.freedesktop.UPower", "/org/freedesktop/UPower", "org.freedesktop.UPower", G_BUS_TYPE_SYSTEM);
Since you use a lambda function, and not sigc::mem_fun, this won't be automatically disconnected when the launcher controller dies. Could there be a situation where this occurs? Or not?
« Back to merge proposal
Why add <gio/gio.h> ?
Instead of assigning, use reset:
proxy_.reset(new unity:: glib::DBusProxy ("org.freedeskt op.UPower" ,
"/ org/freedesktop /UPower" ,
"org. freedesktop. UPower" ,
G_ BUS_TYPE_ SYSTEM) ;
Since you use a lambda function, and not sigc::mem_fun, this won't be automatically disconnected when the launcher controller dies. Could there be a situation where this occurs? Or not?