+
+void ui_unity_init(void)
+{
+ psensor_entry = unity_launcher_entry_get_for_desktop_file
+ (PSENSOR_DESKTOP_FILE);
+
+ count_visible = config_is_count_visible();
+
+ if (count_visible) {
+ unity_launcher_entry_set_count(psensor_entry, 0);
+ unity_launcher_entry_set_count_visible(psensor_entry, TRUE);
+ } else {
+ unity_launcher_entry_set_count_visible(psensor_entry, FALSE);
+ }
+
+ g_signal_connect_after(config_get_GSettings(),
+ "changed::interface-unity-launcher-count-disabled",
+ G_CALLBACK(count_visible_changed_cbk),
+ NULL);
+}