Mercurial > pidgin
comparison gtk/gtknotify.c @ 15213:bfc90a066604
[gaim-migrate @ 18003]
Get rid of some warnings. It might be good if it were possible
to close email notifications in the buddylist. I dunno.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 15 Dec 2006 02:48:27 +0000 |
parents | b52cdf3cff4f |
children | e3ea20c6e73f |
comparison
equal
deleted
inserted
replaced
15212:fcb3c61848e0 | 15213:bfc90a066604 |
---|---|
341 struct inbox_info *inbox = g_new0(struct inbox_info, 1); | 341 struct inbox_info *inbox = g_new0(struct inbox_info, 1); |
342 GdkPixbuf *pixbuf = gtk_widget_render_icon(gaim_gtk_blist_get_default_gtk_blist()->headline_hbox, | 342 GdkPixbuf *pixbuf = gtk_widget_render_icon(gaim_gtk_blist_get_default_gtk_blist()->headline_hbox, |
343 GAIM_STOCK_ICON_ONLINE_MSG, GTK_ICON_SIZE_BUTTON, NULL); | 343 GAIM_STOCK_ICON_ONLINE_MSG, GTK_ICON_SIZE_BUTTON, NULL); |
344 char *label_text = g_strdup_printf(ngettext("<b>You have %d new e-mail.</b>", | 344 char *label_text = g_strdup_printf(ngettext("<b>You have %d new e-mail.</b>", |
345 "<b>You have %d new e-mails.</b>", | 345 "<b>You have %d new e-mails.</b>", |
346 count),count); | 346 count), (int)count); |
347 | 347 |
348 inbox->handle = gc; | 348 inbox->handle = gc; |
349 inbox->url = urls ? g_strdup(urls[0]) : NULL; | 349 inbox->url = urls ? g_strdup(urls[0]) : NULL; |
350 gaim_gtk_blist_set_headline(label_text, | 350 gaim_gtk_blist_set_headline(label_text, |
351 pixbuf, G_CALLBACK(open_inbox_cb), inbox); | 351 pixbuf, G_CALLBACK(open_inbox_cb), inbox); |
352 g_object_unref(pixbuf); | 352 g_object_unref(pixbuf); |
353 return; | 353 return NULL; |
354 } | 354 } |
355 | 355 |
356 if (mail_dialog == NULL || !detailed) | 356 if (mail_dialog == NULL || !detailed) |
357 { | 357 { |
358 GtkCellRenderer *rend; | 358 GtkCellRenderer *rend; |