pidgin/gtkstatusbox.c

changeset 35533
8ca83abbc248
parent 35532
2c802bb77720
child 35689
1e257009ac10
child 37110
4309235d2a46
equal deleted inserted replaced
35532:2c802bb77720 35533:8ca83abbc248
453 { 453 {
454 if (statusbox->icon_box == NULL) 454 if (statusbox->icon_box == NULL)
455 return; 455 return;
456 456
457 gtk_widget_destroy(statusbox->icon_box); 457 gtk_widget_destroy(statusbox->icon_box);
458
459 #if GTK_CHECK_VERSION(3,0,0)
458 g_object_unref(statusbox->hand_cursor); 460 g_object_unref(statusbox->hand_cursor);
459 g_object_unref(statusbox->arrow_cursor); 461 g_object_unref(statusbox->arrow_cursor);
462 #else
463 gdk_cursor_unref(statusbox->hand_cursor);
464 gdk_cursor_unref(statusbox->arrow_cursor);
465 #endif
460 466
461 purple_imgstore_unref(statusbox->buddy_icon_img); 467 purple_imgstore_unref(statusbox->buddy_icon_img);
462 468
463 g_object_unref(G_OBJECT(statusbox->buddy_icon)); 469 g_object_unref(G_OBJECT(statusbox->buddy_icon));
464 g_object_unref(G_OBJECT(statusbox->buddy_icon_hover)); 470 g_object_unref(G_OBJECT(statusbox->buddy_icon_hover));

mercurial