qgtkstyle-svn 898-1
http://labs.trolltech.com/page/Projects/Styles/GtkStyle
An engine to create a GTK+ layer for Qt-based applications.
unsupported :: x11
Maintainer: Saint
Votes: 300
License: GPL3
Last Updated: Tue, 26 Jan 2010 00:05:56 +0000
First Submitted: Wed, 14 May 2008 20:57:19 +0000
sorry)... problem was solved by adding:
to env files: export GTK2_RC_FILES=~/.gtkrc-2.0
to ~/.gtkrc-2.0: gtk-theme-name = "<name>"
> Qt 4.5 already included this, so this package is kinda useless IMO -- tri170391
includes, but with old error (i'm not sure if it's accidentally =), in absence of gtk-qt-engine:
QGtkStyle cannot be used together with the GTK_Qt engine
Qt 4.5 already included this, so this package is kinda useless IMO.
It does build and patch correctly when I use the patch provided by nicktian, and not the one in the AUR.
Killajoe, have you uncommented the line for the patch? It installs fine for me too, it's just that the GTK style doesn't work because the patch hasn't been implemented. My problem is with implementing the patch. If it's some error on my part I'll definitely try again.
for me building and installing works fine...
The patch does not work, and I've tried wget-ting the direct link for the patch, so it can't be a copy/paste error on my part. I've uncommented the patch line in the PKGBUILD, added a line to wget the patch, trying both the AUR link and the direct link provided in the comment, but I'm still asked the file to patch:
File to patch: qgtkstyle/gtksymbols.cpp (I think this is the file--I input this in)
patching file qgtkstyle/gtksymbols.cpp
patch: **** malformed patch at line 6: themeName = getThemeName();
Is anyone else having this problem? The SVN checkout works fine for me, the patch is my only issue.
When i launch makepkg it waits here:
[..]
==> Entrata nell'ambiente di fakeroot in corso...
==> Avvio di build() in corso...
Alla revisione 889.
==> SVN checkout done or server timeout
Can you edit the PKGBUILD and try it by yourself and if it works will you paste it here?
also you should apply patch from root source directory with
$patch -p0 <qtengine_errorfix.patch
yes. patch is right. but it is copypasted wrong. you can get the patch file from http://nicktian.narod.ru/qtengine_errorfix.patch
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gtksymbols.cpp
|===================================================================
|--- gtksymbols.cpp (revision 889)
|+++ gtksymbols.cpp (working copy)
--------------------------
File to patch:
What can i do? Is your patch right?
You can "conflicts=('gtk-qt-engine')" line
and add this patch to your tarball
Index: gtksymbols.cpp
===================================================================
--- gtksymbols.cpp (revision 889)
+++ gtksymbols.cpp (working copy)
@@ -569,7 +569,7 @@
themeName = getThemeName();
// Due to namespace conflicts with Qt3 and obvious recursion with Qt4,
// we cannot support the GTK_Qt Gtk engine
- if (!(themeName.isEmpty() || themeName == QLS("Qt") || themeName == QLS("Qt4"))) {
+ if (!(themeName == QLS("Qt") || themeName == QLS("Qt4"))) {
resolveGtk();
if (QGtk::gtk_init) {
qt_filedialog_open_filename_hook = &QGtk::openFilename;
so this patch helps everyone who have this problem ("QGtkStyle cannot be used together with the GTK_Qt engine") and really have no gtk-qt-engine installed
Of course, using both at the same time makes no sense at all as it ends up in a recursion as both widget engines try to call each other. The check for the gtk theme name is only in there to prevent this recursion from happening. Imho, it's implemented badly as it still detects a problem even when there is none.
I'm just wondering why one needs to use both qgtkstyle and gtk-qt-engine at the same time.
If one is using a Qt based DE (KDE) then gtk-qt-engine is needed to have GTK apps look like Qt apps. Qt apps are still rendered by Qt itself.
If one is using a GTK based DE (Gnome, Xfce) then qgtkstyle is needed to have Qt4 apps look like GTK apps. GTK apps are still rendered by GTK itself.
I can't image that it is possible to run KDE and Gnome at the same time on the same Computer.
Actually, the problem returned. Really odd. Don't see why it's still happening. Now I just removed the check completely before compiling. Around line 570, commented this part
if (!(themeName.isEmpty() || themeName == QLS("Qt") || themeName == QLS("Qt4")))
and the corresponding else statement. Now it's fixed for good...
Just don't do this and then enable GTK_Qt as this will make qt try to make gtk widgets while gtk tries to make qt widgets which results in destroying both ;)
I got the same error (QGtkStyle cannot be used together with the GTK_Qt engine.) so I went through the qgtkstyle sources and this is the probem:
qgtkstyle checks for the current gtk style name, as it should NOT be "Qt" or "Qt4". It first checks for the GTK2_RC_FILES variable which would point to some gtkrc files with the names in it, but most don't have this env var, so it checks in gconf. Most people who don't have many gnome things won't ahve this key and that's the problem.
This fixed it for me and it should fix it for anyone else (run it as user, to add a key to gconf. The name doesn't matter at all, as long as it's not Qt or Qt4.)
gconftool-2 -t string -s /desktop/gnome/interface/gtk_theme "Clearlooks"
This one:
QGtkStyle cannot be used together with the GTK_Qt engine.
:(
gconf is needed.. i tried without it and something fails.. you can try if you want
pacman -Rd gconf && yaourt -S qgtkstyle-svn
now open 'qtconfig' and use a qt-based application
This should not depend on gconf, it only needs gtk2.
Since this is an svn package, would you please add makedepends=('subversion')? Thank you!
Just a quick note for anyone wondering - qt 4.4.0-1 in now in testing.
As you can read on previous comments here You need qt 4.4.0. It's not in Arch's Repo. You need markc's kde4-svn packages or qtmod from kdemo4-unstable.
It won't build.
==> ERROR: unable to retrieve revision number
==> Making package: qgtkstyle-svn 594-1 (Sun May 18 19:40:33 EDT 2008)
==> Checking Runtime Dependencies...
==> Installing missing dependencies...
warning: qt-4.3.3-4 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
Targets: qt-4.3.3-4
Total Download Size: 0.00 MB
Total Installed Size: 15.95 MB
Proceed with installation? [Y/n] y
checking package integrity...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading qt [#####################] 100%
==> Missing Dependencies:
-> qt>=4.4.0
==> Checking Buildtime Dependencies...
==> ERROR: Could not resolve all dependencies.
Error: Makepkg was unable to build qgtkstyle-svn package.
Thanks. added gconf to dependencies.
It also depends on "gconf". (qgtkstyle actually use some sort of hack with gconf to obtain certain gtk information. it's going to use XSettings later).
Without gconf I get a SEGFAULT
You could also use "qtmod" from KDEMod4-Repo.
Well Qt 4.4.0 is in only one Repo I know. markc's kde4.1 svn builds: http://bbs.archlinux.org/viewtopic.php?id=44507
you need qt-copy amd qt-copy-dev from his repos. unfornutatley I needed kdelibs too because he put phonon in kdelibs and qt needs phonon.
So pacman -S qt-copy-dev kdelibs then build this package and set the qt style with qtconfig.
and qt4 is in what repo? can't find it...
You find it in qt3 ;)
in wich package do i find the qmake utility??
v1.6.0