Bug 88816 - x11-themes/gtk-qt-engine black menus on gtk apps [patch]
Summary: x11-themes/gtk-qt-engine black menus on gtk apps [patch]
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 22:40 UTC by Axel Gonzalez
Modified: 2005-11-13 21:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Gonzalez 2005-11-10 22:40:12 UTC
When using gtk apps with x11-themes/gtk-qt-engine menus go black, and sometimes even the background of the app.

This happened after upgrade to gnome 2.12 (only libs, since I use KDE)


Also get warnings like:

Gdk-WARNING **: gdk_window_set_back_pixmap(): pixmap must have a colormap


found a patch in:

http://www.kde-look.org/content/show.php?content=9714

That solves this problem (I've alredy tried it)

Fix: files/patch-src_qt_theme_draw.c



gdk_window_set_back_pixmap (window, pixmap, parent_relative);--OEIlp4y05IKeJvV2UlfQNxAkM951LIPevb0whscXQ37qmYvd
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- src/qt_theme_draw.c.orig    Thu Nov 10 16:23:45 2005
+++ src/qt_theme_draw.c Thu Nov 10 16:24:55 2005
@@ -1777,6 +1777,7 @@
         {
           pixmap = pix_test;
           parent_relative = FALSE;
+          gdk_drawable_set_colormap(pixmap, style->colormap);
         }
How-To-Repeat: 
Start any gtk app with gtk-qt engine loaded
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-10 22:42:12 UTC
Maintainer of x11-themes/gtk-qt-engine,

Please note that PR ports/88816 just has been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/88816

-- 
Edwin Groothuis
edwin@FreeBSD.org
Comment 2 Danny Pansters 2005-11-12 03:24:19 UTC
The problem and the workaround look credible. I'd like to contact the 
developer first though. It's possible that a patch or new release dealing 
with maybe more of these Gdk warnings that may have turned into errors by 
now. Give me a few days for this. If nothing new is coming, the patch goes in 
and I'll deal with removing it again by the time it hits upstream in some way 
(submitter, please keep an eye on it also if you will).

Thanks,

Dan (port maintainer)
Comment 3 Danny Pansters 2005-11-13 17:11:10 UTC
After testing on an up-to-date box, I argee this patch is all that's needed. 
Sorry for the delay. Please commit.
Comment 4 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-13 21:42:04 UTC
State Changed
From-To: open->closed

Committed, thanks!