Commit 987ac20e authored by Yuanle Song's avatar Yuanle Song
Browse files

minor update and add doc on on_name_lost()

parent bd0a7f68
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -154,7 +154,14 @@ on_name_lost (GDBusConnection *connection,
              const gchar     *name,
              gpointer         user_data)
{
	g_message ("on_name_lost() name=%s", name);
	AppData *appdata = (AppData*) user_data;
	/* this won't happen if this is the only app that tries to take the
	 * name, because GApplication already have primary instance
	 * concept. None primary instance will just send 'activate' signal to
	 * primary instance and exit. They will not try to register ibus at
	 * all. */
	g_message ("on_name_lost() name=%s exiting", name);
	g_application_quit (G_APPLICATION (appdata->app));
}

static void