openbsd-ports/x11/gnome/gdl/patches/patch-gdl_gdl-icons_c
jasper 237e433e73 import gdl 0.7.9
This package contains components and libraries that are intended to be
shared between GNOME development tools.

The current pieces of GDL include:

 - A symbol browser bonobo component (symbol-browser-control).
 - A docking widget (gdl).
 - A utility library that also contains the stubs and skels for
   the symbol browser and text editor components (gdl, idl).

ok ajacoutot@
2008-02-18 17:57:02 +00:00

19 lines
635 B
Plaintext

$OpenBSD: patch-gdl_gdl-icons_c,v 1.1.1.1 2008/02/18 17:57:02 jasper Exp $
--- gdl/gdl-icons.c.orig Sat Feb 16 11:43:24 2008
+++ gdl/gdl-icons.c Sat Feb 16 11:44:02 2008
@@ -203,12 +203,13 @@ gdl_icons_get_mime_icon (GdlIcons *icons,
{
GdkPixbuf *pixbuf;
char *icon_name;
+ GdlIconsPrivate *priv;
g_return_val_if_fail (icons != NULL, NULL);
g_return_val_if_fail (GDL_IS_ICONS (icons), NULL);
g_return_val_if_fail (mime_type != NULL, NULL);
- GdlIconsPrivate *priv = GDL_ICONS_GET_PRIVATE (icons);
+ priv = GDL_ICONS_GET_PRIVATE (icons);
pixbuf = g_hash_table_lookup (priv->icons, mime_type);
if (pixbuf != NULL) {