--- /dev/null
+--- kcm_gtk/Makefile.am.orig 2005-01-14 10:52:16.000000000 +0000
++++ kcm_gtk/Makefile.am 2005-01-15 10:44:20.006738856 +0000
+@@ -2,8 +2,7 @@
+ METASOURCES = AUTO
+
+ # Install this plugin in the KDE modules directory
+-kcmgtkmoduledir = $(KDE_PREFIX)/lib/kde3/
+-kcmgtkmodule_LTLIBRARIES = kcm_kcmgtk.la
++kde_module_LTLIBRARIES = kcm_kcmgtk.la
+
+ kcm_kcmgtk_la_SOURCES = kcmgtkwidget.ui kcmgtk.cpp
+ kcm_kcmgtk_la_LIBADD = $(LIB_KDEUI)
+@@ -11,7 +10,7 @@
+
+
+ kcmgtk_DATA = kcmgtk.desktop
+-kcmgtkdir = $(KDE_PREFIX)/share/applnk/Settings/LookNFeel
++kcmgtkdir = $(kde_appsdir)/Settings/LookNFeel
+
+ kcmgtkdebian_DATA = kcmgtk.menu
+ kcmgtkdebiandir = /usr/lib/menu
--- /dev/null
+--- gtk-qt-engine-0.6/src/qt_qt_wrapper.cpp.3919 2004-12-19 09:31:48.000000000 -0600
++++ gtk-qt-engine-0.6/src/qt_qt_wrapper.cpp 2005-10-27 09:48:07.000000000 -0500
+@@ -1363,7 +1363,8 @@
+ int sdiff = 10000, pos = -1, diff = 1;
+ for ( int i = 0; i < g_list_length(notebook->children); i++ )
+ {
+- diff = gtk_notebook_get_tab_label(notebook,gtk_notebook_get_nth_page(notebook,i))->allocation.x - x;
++ GtkWidget *tab_label=gtk_notebook_get_tab_label(notebook,gtk_notebook_get_nth_page(notebook,i));
++ if (tab_label) diff = tab_label->allocation.x - x;
+ if ((diff > 0) && (diff < sdiff))
+ {
+ sdiff = diff; pos = i;
# TODO
# - kde control panel applet doesn't get found
-# - where to place the .theme?
Summary: A GTK+ theme engine that uses Qt for drawing
Summary(pl): Silnik graficzny wykorzystuj±cy Qt do rysowania kontrolek GTK+
Name: gtk2-theme-engine-qt
Version: 0.6
-Release: 0.6
+Release: 1
License: GPL
Group: Themes/GTK+
Source0: http://www.freedesktop.org/~davidsansome/gtk-qt-engine-%{version}.tar.bz2
# Source0-md5: 9c02c95a6e8d304b1f2801429759e1c0
Patch0: %{name}-black-menus.patch
+Patch1: %{name}-kcm-fixinstallationdir.patch
+# don't dup GTK-QT in kde menu(s)
+Patch2: %{name}-dt.patch
+# segfault in libqtengine.so drawing notebook
+# https://bugs.freedesktop.org/show_bug.cgi?id=3919
+Patch3: %{name}-notebook.patch
URL: http://www.freedesktop.org/Software/gtk-qt
+BuildRequires: automake
BuildRequires: gtk+2-devel >= 1:2.0.0
BuildRequires: kdelibs-devel
+BuildRequires: libbonoboui-devel
BuildRequires: pkgconfig
BuildRequires: qt-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n gtk-qt-engine-%{version}
%patch0 -p1
+%patch1 -p0
+%patch2 -p1
+%patch3 -p1
+
+%{__make} -f admin/Makefile.common cvs
%build
+export QTLIB=%{_libdir}
%configure
%{__make}
%files
%defattr(644,root,root,755)
-%doc AUTHORS README
+%doc AUTHORS
%attr(755,root,root) %{_libdir}/gtk-2.0/2.4.*/engines/*.so
%{_datadir}/themes/Qt
+%{_datadir}/gtk-qt-engine/
+%{_desktopdir}/*.desktop
+%{_datadir}/applnk/Settings/LookNFeel/*.desktop
%{_libdir}/kde3/kcm_kcmgtk.la
%attr(755,root,root) %{_libdir}/kde3/kcm_kcmgtk.so
-%{_desktopdir}/kcmgtk-xdg.desktop