From 768e63b62c50cc6867fb1b685ab1f941a11b2aae Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Thu, 9 Feb 2012 17:33:06 +0100 Subject: Show alert boxes when something's wrong with the printer --- src/indicator-printers-service.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/indicator-printers-service.c') 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; -- cgit v1.2.3