Mercurial > pidgin.yaz
comparison src/gtkstatusbox.c @ 12221:152748df85cf
[gaim-migrate @ 14523]
Suppress a warning, and simplify an if statement. Isn't it nice when the compiler tells you about useless code?
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 25 Nov 2005 03:07:38 +0000 |
parents | 3c1bac709234 |
children | f28e51bf9be8 |
comparison
equal
deleted
inserted
replaced
12220:64254fbabc7b | 12221:152748df85cf |
---|---|
83 (GClassInitFunc) gtk_gaim_status_box_class_init, | 83 (GClassInitFunc) gtk_gaim_status_box_class_init, |
84 NULL, /* class_finalize */ | 84 NULL, /* class_finalize */ |
85 NULL, /* class_data */ | 85 NULL, /* class_data */ |
86 sizeof (GtkGaimStatusBox), | 86 sizeof (GtkGaimStatusBox), |
87 0, | 87 0, |
88 (GInstanceInitFunc) gtk_gaim_status_box_init | 88 (GInstanceInitFunc) gtk_gaim_status_box_init, |
89 NULL /* value_table */ | |
89 }; | 90 }; |
90 | 91 |
91 status_box_type = g_type_register_static(GTK_TYPE_COMBO_BOX, | 92 status_box_type = g_type_register_static(GTK_TYPE_COMBO_BOX, |
92 "GtkGaimStatusBox", | 93 "GtkGaimStatusBox", |
93 &status_box_info, | 94 &status_box_info, |
799 * activated elsewhere, and we update the status_box | 800 * activated elsewhere, and we update the status_box |
800 * accordingly by monitoring the preference | 801 * accordingly by monitoring the preference |
801 * "/core/savedstatus/current" and then calling | 802 * "/core/savedstatus/current" and then calling |
802 * update_to_reflect_current_status() | 803 * update_to_reflect_current_status() |
803 */ | 804 */ |
804 if ((type < 0) || (type >= GAIM_STATUS_NUM_PRIMITIVES)) | 805 if (type >= GAIM_STATUS_NUM_PRIMITIVES) |
805 return; | 806 return; |
806 | 807 |
807 if (status_box->account) { | 808 if (status_box->account) { |
808 gint active; | 809 gint active; |
809 GaimStatusType *status_type; | 810 GaimStatusType *status_type; |