comparison src/gtksavedstatuses.c @ 13010:e348ed834acc

[gaim-migrate @ 15363] Make sure AIM users can't try to set themselves "DND" or Extended Away or whatever by respected the "is user settable?" flag for status types in gtksavedstatuses.c committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 23 Jan 2006 04:18:34 +0000
parents 9eaf101af7a7
children 5efbb0162f86
comparison
equal deleted inserted replaced
13009:661bce46758b 13010:e348ed834acc
757 g_free(dialog); 757 g_free(dialog);
758 758
759 if (status_window != NULL) 759 if (status_window != NULL)
760 add_status_to_saved_status_list(status_window->model, saved_status); 760 add_status_to_saved_status_list(status_window->model, saved_status);
761 761
762 if ((button == dialog->saveanduse_button) 762 /* If they clicked on "Save & Use" or "Use," then activate the status */
763 || (button != dialog->save_button)) 763 if (button != dialog->save_button)
764 gaim_savedstatus_activate(saved_status); 764 gaim_savedstatus_activate(saved_status);
765 } 765 }
766 766
767 static void 767 static void
768 editor_title_changed_cb(GtkWidget *widget, gpointer user_data) 768 editor_title_changed_cb(GtkWidget *widget, gpointer user_data)
1461 GaimStatusType *status_type; 1461 GaimStatusType *status_type;
1462 GdkPixbuf *pixbuf, *scale = NULL; 1462 GdkPixbuf *pixbuf, *scale = NULL;
1463 const char *id, *name; 1463 const char *id, *name;
1464 1464
1465 status_type = list->data; 1465 status_type = list->data;
1466
1467 /* Only allow users to select statuses that are flagged as "user settable" */
1468 if (!gaim_status_type_is_user_settable(status_type))
1469 continue;
1470
1466 id = gaim_status_type_get_id(status_type); 1471 id = gaim_status_type_get_id(status_type);
1467 pixbuf = gaim_gtk_create_prpl_icon_with_status(account, status_type); 1472 pixbuf = gaim_gtk_create_prpl_icon_with_status(account, status_type);
1468 if (pixbuf != NULL) 1473 if (pixbuf != NULL)
1469 scale = gdk_pixbuf_scale_simple(pixbuf, 16, 16, GDK_INTERP_BILINEAR); 1474 scale = gdk_pixbuf_scale_simple(pixbuf, 16, 16, GDK_INTERP_BILINEAR);
1470 name = gaim_status_type_get_name(status_type); 1475 name = gaim_status_type_get_name(status_type);