ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/background.C
(Generate patch)

Comparing rxvt-unicode/src/background.C (file contents):
Revision 1.220 by sf-exg, Fri May 25 08:27:47 2012 UTC vs.
Revision 1.221 by sf-exg, Fri May 25 09:27:35 2012 UTC

58# endif 58# endif
59 59
60void 60void
61rxvt_term::bg_destroy () 61rxvt_term::bg_destroy ()
62{ 62{
63# ifdef BG_IMAGE_FROM_FILE
64 for (vector<rxvt_image>::iterator bg_image = image_vec.begin (); bg_image < image_vec.end (); bg_image++)
65 bg_image->destroy ();
66# endif
67
63 if (bg_pixmap) 68 if (bg_pixmap)
64 XFreePixmap (dpy, bg_pixmap); 69 XFreePixmap (dpy, bg_pixmap);
65} 70}
66 71
67bool 72bool
694 v_scale = 699 v_scale =
695 h_align = 700 h_align =
696 v_align = 0; 701 v_align = 0;
697 702
698# ifdef HAVE_PIXBUF 703# ifdef HAVE_PIXBUF
699 pixbuf.reset (0); 704 pixbuf = 0;
700# endif 705# endif
701} 706}
702 707
703bool 708bool
704rxvt_image::set_file_geometry (const char *file) 709rxvt_image::set_file_geometry (const char *file)
733 GdkPixbuf *image = gdk_pixbuf_new_from_file (file, NULL); 738 GdkPixbuf *image = gdk_pixbuf_new_from_file (file, NULL);
734 if (image) 739 if (image)
735 { 740 {
736 if (pixbuf) 741 if (pixbuf)
737 g_object_unref (pixbuf); 742 g_object_unref (pixbuf);
738 pixbuf.reset (image); 743 pixbuf = image;
739 ret = true; 744 ret = true;
740 } 745 }
741# endif 746# endif
742 747
743 if (ret) 748 if (ret)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines