comparison src/gtkstatusbox.c @ 13230:1841236cb091

[gaim-migrate @ 15595] Don't show duplicate primitive statuses with no messages in the list of popular statuses. Whoops. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 11 Feb 2006 18:56:51 +0000
parents 488619ad7ed5
children 0d73a9019013
comparison
equal deleted inserted replaced
13229:cc84c3a2fe93 13230:1841236cb091
1234 message = gtk_gaim_status_box_get_message(status_box); 1234 message = gtk_gaim_status_box_get_message(status_box);
1235 if (!message || !*message) 1235 if (!message || !*message)
1236 { 1236 {
1237 gtk_widget_hide_all(status_box->vbox); 1237 gtk_widget_hide_all(status_box->vbox);
1238 status_box->imhtml_visible = FALSE; 1238 status_box->imhtml_visible = FALSE;
1239 if (message != NULL)
1240 {
1241 g_free(message);
1242 message = NULL;
1243 }
1239 } 1244 }
1240 1245
1241 if (status_box->account == NULL) { 1246 if (status_box->account == NULL) {
1242 /* Global */ 1247 /* Global */
1243 /* Save the newly selected status to prefs.xml and status.xml */ 1248 /* Save the newly selected status to prefs.xml and status.xml */
1253 if (changed) 1258 if (changed)
1254 { 1259 {
1255 /* If we've used this type+message before, lookup the transient status */ 1260 /* If we've used this type+message before, lookup the transient status */
1256 saved_status = gaim_savedstatus_find_by_type_and_message( 1261 saved_status = gaim_savedstatus_find_by_type_and_message(
1257 GPOINTER_TO_INT(data), message); 1262 GPOINTER_TO_INT(data), message);
1258
1259 1263
1260 /* If this type+message is unique then create a new transient saved status */ 1264 /* If this type+message is unique then create a new transient saved status */
1261 if (saved_status == NULL) 1265 if (saved_status == NULL)
1262 { 1266 {
1263 saved_status = gaim_savedstatus_new(NULL, GPOINTER_TO_INT(data)); 1267 saved_status = gaim_savedstatus_new(NULL, GPOINTER_TO_INT(data));