~ubuntu-branches/ubuntu/wily/wxwidgets3.0/wily-proposed

« back to all changes in this revision

Viewing changes to debian/patches/set-wxinfobargeneric-text-colour-correctly.patch

  • Committer: Package Import Robot
  • Author(s): Olly Betts
  • Date: 2014-06-18 12:42:22 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140618124222-y7t2vpsije1cesxy
Tags: 3.0.1-1
* New upstream release
  + Incorporates most of the patches we were carrying - only one left is:
    wx-config-conditionalise-webview-in-std.patch
* Drop versioning of dependencies from run-time libraries to wx-common -
  this will make the transition to the next wx version harder, and also
  makes backporting to wheezy more work.
* Mark -dbg packages as "Multi-Arch: same".
* Correct short descriptions of the webview packages to not just be
  copies of the corresponding media package's short description.
* Wrap 81 character line in package description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: Set wxInfoBarGeneric text colour correctly
2
 
 For some reason SetOwnForegroundColour() was used, but we really need to set
3
 
 the colour of the child text control and not our own colour here (which is not
4
 
 used for anything).
5
 
 This makes the text visible even when using non default tooltip colours, which
6
 
 could previously result in black-on-black text.
7
 
Origin: upstream, http://trac.wxwidgets.org/changeset/75213
8
 
Bug: http://trac.wxwidgets.org/ticket/15671
9
 
Applied-Upstream: http://trac.wxwidgets.org/changeset/75213
10
 
Last-Update: 2013-11-30
11
 
 
12
 
Index: /wxWidgets/branches/WX_3_0_BRANCH/src/generic/infobar.cpp
13
 
===================================================================
14
 
--- a/src/generic/infobar.cpp (revision 74602)
15
 
+++ b/src/generic/infobar.cpp (revision 75213)
16
 
@@ -70,7 +70,5 @@
17
 
 
18
 
     // use special, easy to notice, colours
19
 
-    const wxColour colBg = wxSystemSettings::GetColour(wxSYS_COLOUR_INFOBK);
20
 
-    SetBackgroundColour(colBg);
21
 
-    SetOwnForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOTEXT));
22
 
+    SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOBK));
23
 
 
24
 
     // create the controls: icon, text and the button to dismiss the
25
 
@@ -81,4 +79,5 @@
26
 
 
27
 
     m_text = new wxStaticText(this, wxID_ANY, "");
28
 
+    m_text->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_INFOTEXT));
29
 
 
30
 
     m_button = wxBitmapButton::NewCloseButton(this, wxID_ANY);