comparison plugins/idle.c @ 11975:aadf61b30056

[gaim-migrate @ 14268] 1. Fix the I'dle Mak'er plugin 2. Show a friendly "none of your accounts are idle" message in the I'dle Mak'er plugin when attempting to unidle your accounts and none of them are idle 3. HIGify the capitalization of the I'dle Mak'er menu items 4. i18n system log "signed on" and "signed off" messages 5. Log when your accounts become idle and unidle 6. Add default saved statuses if the user has no saved statuses 7. Removed serv_set_idle(). Use gaim_presence_set_idle() instead. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 04 Nov 2005 19:15:05 +0000
parents 2ff2965895f3
children 3ef381cdc47e
comparison
equal deleted inserted replaced
11974:2ff2965895f3 11975:aadf61b30056
24 24
25 #include "internal.h" 25 #include "internal.h"
26 26
27 #include "connection.h" 27 #include "connection.h"
28 #include "debug.h" 28 #include "debug.h"
29 #include "notify.h"
29 #include "plugin.h" 30 #include "plugin.h"
30 #include "request.h" 31 #include "request.h"
31 #include "server.h" 32 #include "server.h"
32 #include "status.h" 33 #include "status.h"
33 #include "version.h" 34 #include "version.h"
132 { 133 {
133 GaimRequestFields *request; 134 GaimRequestFields *request;
134 GaimRequestFieldGroup *group; 135 GaimRequestFieldGroup *group;
135 GaimRequestField *field; 136 GaimRequestField *field;
136 137
138 if (idled_accts == NULL)
139 {
140 gaim_notify_info(NULL, NULL, _("None of your accounts are idle."), NULL);
141 return;
142 }
143
137 group = gaim_request_field_group_new(NULL); 144 group = gaim_request_field_group_new(NULL);
138 145
139 field = gaim_request_field_account_new("acct", _("Account"), NULL); 146 field = gaim_request_field_account_new("acct", _("Account"), NULL);
140 gaim_request_field_account_set_filter(field, idle_filter); 147 gaim_request_field_account_set_filter(field, idle_filter);
141 gaim_request_field_account_set_show_all(field, FALSE); 148 gaim_request_field_account_set_show_all(field, FALSE);
175 actions(GaimPlugin *plugin, gpointer context) 182 actions(GaimPlugin *plugin, gpointer context)
176 { 183 {
177 GList *l = NULL; 184 GList *l = NULL;
178 GaimPluginAction *act = NULL; 185 GaimPluginAction *act = NULL;
179 186
180 act = gaim_plugin_action_new(_("Set Account Idle Time"), 187 act = gaim_plugin_action_new(_("Set account idle time"),
181 idle_action); 188 idle_action);
182 l = g_list_append(l, act); 189 l = g_list_append(l, act);
183 190
184 act = gaim_plugin_action_new(_("Unset Account Idle Time"), 191 act = gaim_plugin_action_new(_("Unset account idle time"),
185 unidle_action); 192 unidle_action);
186 l = g_list_append(l, act); 193 l = g_list_append(l, act);
187 194
188 act = gaim_plugin_action_new( 195 act = gaim_plugin_action_new(
189 _("Unset Idle Time For All Idled Accounts"), unidle_all_action); 196 _("Unset idle time for all idled accounts"), unidle_all_action);
190 l = g_list_append(l, act); 197 l = g_list_append(l, act);
191 198
192 return l; 199 return l;
193 } 200 }
194 201