/* only the screen is refreshed, useful if e.g. the poi database changed */ gboolean dbus_mm_set_position(osso_context_t *osso_context) { osso_rpc_t retval; osso_return_t ret; ret = osso_rpc_run(osso_context, MM_DBUS_SERVICE, MM_DBUS_PATH, MM_DBUS_INTERFACE, "set_view_center", &retval, DBUS_TYPE_INVALID); osso_rpc_free_val(&retval); return(ret == OSSO_OK); }
/** * Callback for the button clicked signal * * @param widget the button widget * @param data applet info struct */ static gboolean applet_icon_pressed(GtkWidget *widget, GdkEventButton *button, gpointer data) { LauncherNavigatorAppletPrivate *info; g_return_val_if_fail(data, FALSE); info = (LauncherNavigatorAppletPrivate*)data; gtk_button_released(GTK_BUTTON(info->button)); osso_rpc_t retval; osso_return_t result; result = osso_rpc_run(info->osso, "org.telescope", "/Launcher", "org.telescope.Launcher", "Show", &retval, DBUS_TYPE_INVALID); osso_rpc_free_val(&retval); (void) button; return TRUE; }