gtk/gtknotify.c

changeset 15275
ebf5d4eeaf96
parent 15261
109ac4fcc3e7
child 15386
2cfff7893ed0
equal deleted inserted replaced
15274:19f6578ddb99 15275:ebf5d4eeaf96
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;

mercurial