From 5e6762db2485ef88859bdb8fcca636c3dc8aa832 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 3 May 2013 09:54:53 -0700 Subject: fix a g_critical by calling gtk_init() before we try to get the icon size. --- src/datetime-service.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/datetime-service.c b/src/datetime-service.c index 3738084..e7fc631 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -1276,6 +1276,8 @@ on_use_geoclue_changed_cb (GSettings *settings, int main (int argc, char ** argv) { + gtk_init (&argc, &argv); + /* Acknowledging the service init and setting up the interface */ service = indicator_service_new_version(SERVICE_NAME, SERVICE_VERSION); g_signal_connect(service, INDICATOR_SERVICE_SIGNAL_SHUTDOWN, G_CALLBACK(service_shutdown), NULL); -- cgit v1.2.3