Mercurial > pidgin.yaz
comparison pidgin/gtkstatusbox.c @ 15593:0a5823d45398
Fix a few small compile warnings:
gtkblist.c: In function ¡Æpidgin_blist_paint_tip¡Ç:
gtkblist.c:2352: warning: suggest explicit braces to avoid ambiguous ¡Æelse¡Ç
gtkblist.c:2370: warning: suggest explicit braces to avoid ambiguous ¡Æelse¡Ç
gtklog.c: In function ¡Æpidgin_log_show_contact¡Ç:
gtklog.c:699: warning: ISO C90 forbids mixed declarations and code
gtkstatusbox.c: In function ¡Æadd_popular_statuses¡Ç:
gtkstatusbox.c:842: warning: unused variable ¡Æheight¡Ç
gtkstatusbox.c:842: warning: unused variable ¡Æwidth¡Ç
gtkstatusbox.c:841: warning: unused variable ¡Æemblem¡Ç
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 09 Feb 2007 07:34:51 +0000 |
parents | 535f002e7b0f |
children | 603488306e23 |
comparison
equal
deleted
inserted
replaced
15592:cf999f8e8a56 | 15593:0a5823d45398 |
---|---|
834 } | 834 } |
835 | 835 |
836 static void | 836 static void |
837 add_popular_statuses(PidginStatusBox *statusbox) | 837 add_popular_statuses(PidginStatusBox *statusbox) |
838 { | 838 { |
839 GtkIconSize icon_size; | 839 GtkIconSize icon_size; |
840 GList *list, *cur; | 840 GList *list, *cur; |
841 GdkPixbuf *pixbuf, *emblem; | 841 GdkPixbuf *pixbuf; |
842 int width, height; | |
843 | 842 |
844 list = gaim_savedstatuses_get_popular(6); | 843 list = gaim_savedstatuses_get_popular(6); |
845 if (list == NULL) | 844 if (list == NULL) |
846 /* Odd... oh well, nothing we can do about it. */ | 845 /* Odd... oh well, nothing we can do about it. */ |
847 return; | 846 return; |
856 const gchar *message; | 855 const gchar *message; |
857 gchar *stripped = NULL; | 856 gchar *stripped = NULL; |
858 GaimStatusPrimitive prim; | 857 GaimStatusPrimitive prim; |
859 | 858 |
860 /* Get an appropriate status icon */ | 859 /* Get an appropriate status icon */ |
861 prim = gaim_savedstatus_get_type(saved); | 860 prim = gaim_savedstatus_get_type(saved); |
862 | 861 |
863 if (prim == GAIM_STATUS_UNAVAILABLE) | 862 if (prim == GAIM_STATUS_UNAVAILABLE) |
864 pixbuf = gtk_widget_render_icon (GTK_WIDGET(statusbox), PIDGIN_STOCK_STATUS_BUSY, | 863 pixbuf = gtk_widget_render_icon (GTK_WIDGET(statusbox), |
865 icon_size, "PidginStatusBox"); | 864 PIDGIN_STOCK_STATUS_BUSY, icon_size, "PidginStatusBox"); |
866 else if (prim == GAIM_STATUS_AWAY) | 865 else if (prim == GAIM_STATUS_AWAY) |
867 pixbuf = gtk_widget_render_icon (GTK_WIDGET(statusbox), PIDGIN_STOCK_STATUS_AWAY, | 866 pixbuf = gtk_widget_render_icon (GTK_WIDGET(statusbox), |
868 icon_size, "PidginStatusBox"); | 867 PIDGIN_STOCK_STATUS_AWAY, icon_size, "PidginStatusBox"); |
869 else if (prim == GAIM_STATUS_EXTENDED_AWAY) | 868 else if (prim == GAIM_STATUS_EXTENDED_AWAY) |
870 pixbuf = gtk_widget_render_icon (GTK_WIDGET(statusbox), PIDGIN_STOCK_STATUS_XA, | 869 pixbuf = gtk_widget_render_icon (GTK_WIDGET(statusbox), |
871 icon_size, "PidginStatusBox"); | 870 PIDGIN_STOCK_STATUS_XA, icon_size, "PidginStatusBox"); |
872 else if (prim == GAIM_STATUS_OFFLINE) | 871 else if (prim == GAIM_STATUS_OFFLINE) |
873 pixbuf = gtk_widget_render_icon (GTK_WIDGET(statusbox), PIDGIN_STOCK_STATUS_OFFLINE, | 872 pixbuf = gtk_widget_render_icon (GTK_WIDGET(statusbox), |
874 icon_size, "PidginStatusBox"); | 873 PIDGIN_STOCK_STATUS_OFFLINE, icon_size, "PidginStatusBox"); |
875 else | 874 else |
876 pixbuf = gtk_widget_render_icon (GTK_WIDGET(statusbox), PIDGIN_STOCK_STATUS_AVAILABLE, | 875 pixbuf = gtk_widget_render_icon (GTK_WIDGET(statusbox), |
877 icon_size, "PidginStatusBox"); | 876 PIDGIN_STOCK_STATUS_AVAILABLE, icon_size, "PidginStatusBox"); |
878 | 877 |
879 if (gaim_savedstatus_is_transient(saved)) | 878 if (gaim_savedstatus_is_transient(saved)) |
880 { | 879 { |
881 /* | 880 /* |
882 * Transient statuses do not have a title, so the savedstatus | 881 * Transient statuses do not have a title, so the savedstatus |
883 * API returns the message when gaim_savedstatus_get_title() is | 882 * API returns the message when gaim_savedstatus_get_title() is |