aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-20 14:53:24 -0600
committerTed Gould <ted@gould.cx>2014-02-20 14:53:24 -0600
commitb7a1e10a2e2a8cffba37a271ae0c44002dcab837 (patch)
tree6a12c30744cdaaada24327c20aedaf89ecbd25b9
parent329107ab34c4613ce4e59bb563762af53bc1287a (diff)
downloadayatana-indicator-printers-b7a1e10a2e2a8cffba37a271ae0c44002dcab837.tar.gz
ayatana-indicator-printers-b7a1e10a2e2a8cffba37a271ae0c44002dcab837.tar.bz2
ayatana-indicator-printers-b7a1e10a2e2a8cffba37a271ae0c44002dcab837.zip
Drop the indicator service
-rw-r--r--src/indicator-printers-service.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/indicator-printers-service.c b/src/indicator-printers-service.c
index 737fed4..086ca0c 100644
--- a/src/indicator-printers-service.c
+++ b/src/indicator-printers-service.c
@@ -132,19 +132,6 @@ cancel_subscription (int id)
ippDelete (resp);
}
-
-static void
-service_shutdown (IndicatorService *service, gpointer user_data)
-{
- int subscription_id = GPOINTER_TO_INT (user_data);
-
- g_debug("Shutting down indicator-printers-service");
-
- cancel_subscription (subscription_id);
- gtk_main_quit ();
-}
-
-
int main (int argc, char *argv[])
{
/* Init i18n */
@@ -153,7 +140,6 @@ int main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- IndicatorService *service;
DbusmenuServer *menuserver;
CupsNotifier *cups_notifier;
IndicatorPrintersMenu *menu;
@@ -168,13 +154,6 @@ int main (int argc, char *argv[])
renew_subscription_timeout,
&subscription_id);
- service = indicator_service_new_version (INDICATOR_PRINTERS_DBUS_NAME,
- INDICATOR_PRINTERS_DBUS_VERSION);
- g_signal_connect (service,
- "shutdown",
- G_CALLBACK (service_shutdown),
- GINT_TO_POINTER (subscription_id));
-
cups_notifier = cups_notifier_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
0,
NULL,
@@ -184,7 +163,6 @@ int main (int argc, char *argv[])
if (error) {
g_warning ("Error creating cups notify handler: %s", error->message);
g_error_free (error);
- g_object_unref (service);
return 1;
}
@@ -206,7 +184,6 @@ int main (int argc, char *argv[])
g_object_unref (menuserver);
g_object_unref (state_notifier);
g_object_unref (cups_notifier);
- g_object_unref (service);
return 0;
}