Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gnometesting.git;a=commitdiff;h=d68c078972190d2eb92a4bfb491e19308742be98

commit d68c078972190d2eb92a4bfb491e19308742be98
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Tue Oct 12 12:41:37 2010 +0000

librsvg-2.32.0-2-i686
*ported to gtk3

diff --git a/source/xlib/librsvg/FrugalBuild b/source/xlib/librsvg/FrugalBuild
index 7a12ba0..685e155 100644
--- a/source/xlib/librsvg/FrugalBuild
+++ b/source/xlib/librsvg/FrugalBuild
@@ -6,12 +6,14 @@ pkgname=librsvg
pkgver=2.32.0
pkgrel=2
pkgdesc="A high performance SVG rendering library for GNOME"
-depends=('gtk+2>=2.22.0' 'gdk-pixbuf2' 'libxml2' 'popt' 'libart_lgpl' 
'libcroco>=0.6.1-4' 'libgsf>=1.14.8')
+depends=('gtk+3>=2.22.0' 'gdk-pixbuf2' 'libxml2' 'popt' 'libart_lgpl' 
'libcroco>=0.6.1-4' 'libgsf>=1.14.8')
makedepends=('gtk-doc')
groups=('xlib')
archs=('i686' 'x86_64' 'ppc')
Finclude gnome
-sha1sums=('252727b948a29b36dae0022e0c620538bcb158f8')
+source=($source gtk3.diff)
+sha1sums=('252727b948a29b36dae0022e0c620538bcb158f8' \
+          '7e43096b8840fea9e0a6d506b2916361e621e60e')
Fconfopts="$Fconfopts --with-croco --disable-static \
--with-svgz --enable-gtk-theme"

diff --git a/source/xlib/librsvg/gtk3.diff b/source/xlib/librsvg/gtk3.diff
new file mode 100644
index 0000000..8200807
--- /dev/null
+++ b/source/xlib/librsvg/gtk3.diff
@@ -0,0 +1,29 @@
+From cbad691f0fee81673766e8c5c32d8019569ddf5d Mon Sep 17 00:00:00 2001
+From: Christian Persch <c...@gnome.org>
+Date: Mon, 27 Sep 2010 17:08:34 +0000
+Subject: rsvg-view: Fix build with gtk 3
+
+GdkColormap is gone.
+---
+diff --git a/test-display.c b/test-display.c
+index 56b3fc1..6594dec 100644
+--- a/test-display.c
++++ b/test-display.c
+@@ -690,11 +690,15 @@ view_pixbuf (ViewerCbInfo * info, int xid, const char 
*color)
+         if (gdk_color_parse (color, &bg_color)) {
+             GtkWidget *parent_widget = gtk_widget_get_parent (info->image);
+
++#if GTK_CHECK_VERSION (2, 90, 8)
++            gtk_widget_modify_bg (parent_widget, GTK_STATE_NORMAL, &bg_color);
++#else
+             if (gdk_colormap_alloc_color
+                 (gtk_widget_get_colormap (parent_widget), &bg_color, FALSE, 
TRUE))
+                 gtk_widget_modify_bg (parent_widget, GTK_STATE_NORMAL, 
&bg_color);
+             else
+                 g_warning (_("Couldn't allocate color '%s'"), color);
++#endif
+         } else
+             g_warning (_("Couldn't parse color '%s'"), color);
+     }
+--
+cgit v0.8.3.1
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to