aboutsummaryrefslogtreecommitdiff
path: root/src/device-menu-mgr.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-07-19 19:53:15 +0100
committerConor Curran <conor.curran@canonical.com>2011-07-19 19:53:15 +0100
commit34a5a7289ede2d662d6c64457afcd1c22354d21b (patch)
tree6a3f5e3a09dbe503bef4b44bf7327a61a2d5bb01 /src/device-menu-mgr.c
parent123c9776b0a67b8dd8a58b8295c3356b1f8be606 (diff)
downloadayatana-indicator-session-34a5a7289ede2d662d6c64457afcd1c22354d21b.tar.gz
ayatana-indicator-session-34a5a7289ede2d662d6c64457afcd1c22354d21b.tar.bz2
ayatana-indicator-session-34a5a7289ede2d662d6c64457afcd1c22354d21b.zip
apt watcher coming along nicely
Diffstat (limited to 'src/device-menu-mgr.c')
-rw-r--r--src/device-menu-mgr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device-menu-mgr.c b/src/device-menu-mgr.c
index ccb4523..a3cea61 100644
--- a/src/device-menu-mgr.c
+++ b/src/device-menu-mgr.c
@@ -25,6 +25,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "dbusmenu-shared.h"
#include "lock-helper.h"
#include "upower-client.h"
+#include "apt-watcher.h"
#define UP_ADDRESS "org.freedesktop.UPower"
@@ -87,6 +88,7 @@ static void
machine_sleep_from_hibernate (DbusmenuMenuitem * mi,
guint timestamp,
gpointer userdata);
+static AptWatcher* watcher = NULL;
/*static void
machine_sleep_from_suspend (DbusmenuMenuitem * mi,
guint timestamp,
@@ -101,6 +103,7 @@ device_menu_mgr_init (DeviceMenuMgr *self)
setup_restart_watch(self);
setup_up(self);
g_idle_add(lock_screen_setup, NULL);
+
}
static void
@@ -117,6 +120,7 @@ device_menu_mgr_class_init (DeviceMenuMgrClass *klass)
GObjectClass* object_class = G_OBJECT_CLASS (klass);
//GObjectClass* parent_class = G_OBJECT_CLASS (klass);
object_class->finalize = device_menu_mgr_finalize;
+ watcher = g_object_new (APT_TYPE_WATCHER, NULL);
}
// TODO