aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-printers-service.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-02-09 17:33:06 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-02-09 17:33:06 +0100
commit768e63b62c50cc6867fb1b685ab1f941a11b2aae (patch)
tree49db1caa980ce796a419eb9d02ce90af31e3825d /src/indicator-printers-service.c
parent48756842df18d31fa3181726b146abf1087ac8f0 (diff)
downloadayatana-indicator-printers-768e63b62c50cc6867fb1b685ab1f941a11b2aae.tar.gz
ayatana-indicator-printers-768e63b62c50cc6867fb1b685ab1f941a11b2aae.tar.bz2
ayatana-indicator-printers-768e63b62c50cc6867fb1b685ab1f941a11b2aae.zip
Show alert boxes when something's wrong with the printer
Diffstat (limited to 'src/indicator-printers-service.c')
-rw-r--r--src/indicator-printers-service.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/indicator-printers-service.c b/src/indicator-printers-service.c
index ce89dd0..58644ab 100644
--- a/src/indicator-printers-service.c
+++ b/src/indicator-printers-service.c
@@ -23,6 +23,7 @@
#include "cups-notifier.h"
#include "indicator-printers-menu.h"
+#include "indicator-printer-state-notifier.h"
static void
@@ -39,6 +40,7 @@ int main (int argc, char *argv[])
DbusmenuServer *menuserver;
CupsNotifier *cups_notifier;
IndicatorPrintersMenu *menu;
+ IndicatorPrinterStateNotifier *state_notifier;
GError *error = NULL;
gtk_init (&argc, &argv);
@@ -71,10 +73,15 @@ int main (int argc, char *argv[])
dbusmenu_server_set_root (menuserver,
indicator_printers_menu_get_root (menu));
+ state_notifier = g_object_new (INDICATOR_TYPE_PRINTER_STATE_NOTIFIER,
+ "cups-notifier", cups_notifier,
+ NULL);
+
gtk_main ();
g_object_unref (menu);
g_object_unref (menuserver);
+ g_object_unref (state_notifier);
g_object_unref (cups_notifier);
g_object_unref (service);
return 0;