static void mate_panel_applet_move(PanelWidget *panel, GtkWidget *widget, gpointer data) { AppletInfo *info; info = g_object_get_data (G_OBJECT (widget), "applet_info"); g_return_if_fail (info); mate_panel_applet_save_position (info, info->id, FALSE); }
gboolean mate_panel_applet_toggle_locked (AppletInfo *info) { PanelWidget *panel_widget; gboolean locked; panel_widget = mate_panel_applet_get_panel_widget (info); locked = panel_widget_toggle_applet_locked (panel_widget, info->widget); mate_panel_applet_save_position (info, info->id, TRUE); mate_panel_applet_set_dnd_enabled (info, !locked); return locked; }
static gboolean mate_panel_applet_position_save_timeout (gpointer dummy) { GSList *l; queued_position_source = 0; for (l = queued_position_saves; l; l = l->next) { AppletInfo *info = l->data; mate_panel_applet_save_position (info, info->id, TRUE); } g_slist_free (queued_position_saves); queued_position_saves = NULL; return FALSE; }