From 6b18017f8240d6ce4880a1ed7d9158be8d914c95 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 9 Aug 2007 17:17:12 +0000 Subject: Remove per-state "Custom message..." item and add one on the bottom of the 2007-08-09 Xavier Claessens * libempathy-gtk/empathy-presence-chooser.glade: * libempathy-gtk/empathy-presence-chooser.c: * libempathy-gtk/empathy-status-presets.c: * libempathy-gtk/empathy-status-presets.h: * libempathy-gtk/empathy-ui-utils.c: Remove per-state "Custom message..." item and add one on the bottom of the menu. Add a combobox on the custom message dialog to select the state and change the action of the checkbox, now it add/remove the message from saved messages. Make easier to add other states to the list if needed. Fixes bug #460678. svn path=/trunk/; revision=241 --- libempathy-gtk/empathy-status-presets.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libempathy-gtk/empathy-status-presets.h') diff --git a/libempathy-gtk/empathy-status-presets.h b/libempathy-gtk/empathy-status-presets.h index 41df5592c..8a4564f00 100644 --- a/libempathy-gtk/empathy-status-presets.h +++ b/libempathy-gtk/empathy-status-presets.h @@ -29,14 +29,16 @@ G_BEGIN_DECLS void empathy_status_presets_get_all (void); GList * empathy_status_presets_get (McPresence state, - gint max_number); + gint max_number); void empathy_status_presets_set_last (McPresence state, - const gchar *status); + const gchar *status); +void empathy_status_presets_remove (McPresence state, + const gchar *status); void empathy_status_presets_reset (void); McPresence empathy_status_presets_get_default_state (void); const gchar * empathy_status_presets_get_default_status (void); void empathy_status_presets_set_default (McPresence state, - const gchar *status); + const gchar *status); void empathy_status_presets_clear_default (void); G_END_DECLS -- cgit v1.2.3