/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* evolution-shell-component-utils.c * * Copyright (C) 2000, 2001 Ximian, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * */ #ifdef HAVE_CONFIG_H #include #endif #include "evolution-shell-component-utils.h" #include #include #include static void free_pixmaps (void); static GSList *inited_arrays = NULL; void e_pixmaps_update (BonoboUIComponent *uic, EPixmap *pixcache) { static int done_init = 0; int i; if (!done_init) { g_atexit (free_pixmaps); done_init = 1; } if (g_slist_find (inited_arrays, pixcache) == NULL) inited_arrays = g_slist_prepend (inited_arrays, pixcache); for (i = 0; pixcache [i].path; i++) { if (!pixcache [i].pixbuf) { char *path; GdkPixbuf *pixbuf; path = g_concat_dir_and_file (EVOLUTION_IMAGES, pixcache [i].fname); pixbuf = gdk_pixbuf_new_from_file (path); if (pixbuf == NULL) { g_warning ("Cannot load image -- %s", path); } else { pixcache [i].pixbuf = bonobo_ui_util_pixbuf_to_xml (pixbuf); gdk_pixbuf_unref (pixbuf); bonobo_ui_component_set_prop (uic, pixcache [i].path, "pixname", pixcache [i].pixbuf, NULL); } g_free (path); } else { bonobo_ui_component_set_prop (uic, pixcache [i].path, "pixname", pixcache [i].pixbuf, NULL); } } } static void free_pixmaps (void) { int i; GSList *li; for (li = inited_arrays; li != NULL; li = li->next) { EPixmap *pixcache = li->data; for (i = 0; pixcache [i].path; i++) g_free (pixcache [i].pixbuf); } g_slist_free (inited_arrays); } ist-1.2.2'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Update to 2.14.4.mezz2007-12-122-5/+5
* Presenting GNOME 2.20.1 and all related works for FreeBSD. The officialmarcus2007-10-257-15/+39
* Update to 2.12.13.marcus2007-07-172-5/+5
* Remove support for a separate X11BASE.marcus2007-05-212-5/+4
* - Welcome X.org 7.2 \o/.flz2007-05-202-37/+1
* Update to 2.12.12.marcus2007-05-023-10/+10
* Update to 2.12.11.mezz2007-03-092-4/+4
* Update to 2.12.10.mezz2007-03-083-4/+7
* Update to 2.12.9 to fix the ABI break in 2.12.8 release.mezz2007-01-172-4/+4
* Remove a patch which is no longer required.marcus2007-01-161-53/+0
* Update to 2.12.8.marcus2007-01-162-5/+5
* On i386 (>= 486) and amd64, fix the arch passed to configure so thatjylefort2007-01-121-1/+11
* Update to 2.12.7.marcus2007-01-053-10/+18
* Update to 2.12.6.mezz2006-12-212-4/+4
* Update to 2.12.5ahze2006-12-193-15/+4
* Restore the collation patch.jylefort2006-10-203-0/+135
* Restore a patch to fix the build on ia64 that was removed during themarcus2006-10-171-0/+37
* Presenting GNOME 2.16.1 for FreeBSD. This release represents a massivemarcus2006-10-1410-417/+84
* - Remove the ICU crash workaround and really fix the issue. Ifjylefort2006-10-062-4/+3
* Avoid an icu crash in gimp by disabling optimizations.jylefort2006-09-191-0/+1
* Fix glib20-reference fetching.jylefort2006-09-081-1/+1
* Fix string collation by using the icu library, since the FreeBSD libcjylefort2006-08-233-0/+135
* Fix the build on ia64.marcus2006-07-071-0/+37
* - Add header in these *-reference ports.mezz2006-06-011-0/+1
* - Update to 2.10.3ahze2006-05-272-4/+4
* Add glib20-reference and the bsd.gnome-reference.mk framework.jylefort2006-05-101-0/+5
* Presenting GNOME 2.14.1 for FreeBSD! Checkoutmarcus2006-04-305-14/+23
* Conversion to a single libtool environment.ade2006-02-23