[mingw-gtkmm24: 13/32] compile fix
epienbro
epienbro at fedoraproject.org
Wed Mar 7 17:29:36 UTC 2012
commit f00f16c8429cdbb43af47153d681893a6fc1cd3a
Author: sailer <sailer at fedoraproject.org>
Date: Tue Feb 2 19:51:14 2010 +0000
compile fix
mingw32-gtkmm.patch | 41 +++++++++++++++++++++++++++++++++++++++++
mingw32-gtkmm24.spec | 3 ++-
2 files changed, 43 insertions(+), 1 deletions(-)
---
diff --git a/mingw32-gtkmm.patch b/mingw32-gtkmm.patch
new file mode 100644
index 0000000..20f9c24
--- /dev/null
+++ b/mingw32-gtkmm.patch
@@ -0,0 +1,41 @@
+--- gtk/gtkmm/toolpalette.cc.orig 2010-02-02 19:56:53.414438999 +0100
++++ gtk/gtkmm/toolpalette.cc 2010-02-02 19:57:20.695457125 +0100
+@@ -157,32 +157,32 @@
+
+ void ToolPalette::set_group_position(ToolItemGroup& group, int position)
+ {
+-gtk_tool_palette_set_group_position(gobj(), GTK_WIDGET((group).gobj()), position);
++gtk_tool_palette_set_group_position(gobj(), ((group).gobj()), position);
+ }
+
+ void ToolPalette::set_exclusive(ToolItemGroup& group, bool exclusive)
+ {
+-gtk_tool_palette_set_exclusive(gobj(), GTK_WIDGET((group).gobj()), static_cast<int>(exclusive));
++gtk_tool_palette_set_exclusive(gobj(), ((group).gobj()), static_cast<int>(exclusive));
+ }
+
+ void ToolPalette::set_expand(ToolItemGroup& group, bool expand)
+ {
+-gtk_tool_palette_set_expand(gobj(), GTK_WIDGET((group).gobj()), static_cast<int>(expand));
++gtk_tool_palette_set_expand(gobj(), ((group).gobj()), static_cast<int>(expand));
+ }
+
+ int ToolPalette::get_group_position(ToolItemGroup& group) const
+ {
+- return gtk_tool_palette_get_group_position(const_cast<GtkToolPalette*>(gobj()), GTK_WIDGET((group).gobj()));
++ return gtk_tool_palette_get_group_position(const_cast<GtkToolPalette*>(gobj()), ((group).gobj()));
+ }
+
+ bool ToolPalette::get_exclusive(ToolItemGroup& group) const
+ {
+- return gtk_tool_palette_get_exclusive(const_cast<GtkToolPalette*>(gobj()), GTK_WIDGET((group).gobj()));
++ return gtk_tool_palette_get_exclusive(const_cast<GtkToolPalette*>(gobj()), ((group).gobj()));
+ }
+
+ bool ToolPalette::get_expand(ToolItemGroup& group)
+ {
+- return gtk_tool_palette_get_expand(gobj(), GTK_WIDGET((group).gobj()));
++ return gtk_tool_palette_get_expand(gobj(), ((group).gobj()));
+ }
+
+ void ToolPalette::set_icon_size(IconSize icon_size)
diff --git a/mingw32-gtkmm24.spec b/mingw32-gtkmm24.spec
index 4f3a87a..a14b45f 100644
--- a/mingw32-gtkmm24.spec
+++ b/mingw32-gtkmm24.spec
@@ -14,6 +14,7 @@ License: LGPLv2+
Group: Development/Libraries
URL: http://gtkmm.sourceforge.net/
Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.18/gtkmm-%{version}.tar.bz2
+Patch0: mingw32-gtkmm.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@@ -45,7 +46,7 @@ freely combined to quickly create complex user interfaces.
%prep
%setup -q -n gtkmm-%{version}
-
+%patch0 -p0 -b .mingw32
%build
%{_mingw32_configure} --disable-static --enable-shared --disable-demos --disable-documentation
More information about the scm-commits
mailing list