aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-05-03 09:54:53 -0700
committerCharles Kerr <charles.kerr@canonical.com>2013-05-03 09:54:53 -0700
commit5e6762db2485ef88859bdb8fcca636c3dc8aa832 (patch)
tree747cb03457acfc4796bbea8a26a33419c21a1229 /src
parent5b500193b3eb561260cc31e714e2b0c35148cfff (diff)
downloadayatana-indicator-datetime-5e6762db2485ef88859bdb8fcca636c3dc8aa832.tar.gz
ayatana-indicator-datetime-5e6762db2485ef88859bdb8fcca636c3dc8aa832.tar.bz2
ayatana-indicator-datetime-5e6762db2485ef88859bdb8fcca636c3dc8aa832.zip
fix a g_critical by calling gtk_init() before we try to get the icon size.
Diffstat (limited to 'src')
-rw-r--r--src/datetime-service.c2
1 files changed, 2 insertions, 0 deletions
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);