Underlined blue static text

Vadim Zeitlin vadim at wxwindows.org
Thu Feb 1 17:17:04 PST 2007


On Thu, 01 Feb 2007 23:03:40 +0200 Mart Raudsepp <leio at dustbite.net> wrote:

MR> I believe we are creating the label with gtk_label_new_with_mnemonic and
MR> that sets use_markup to FALSE and use_underline to TRUE.
MR> As I noted in earlier mail, gtk_label_set_attributes does anything
MR> useful only if use_underline and use_markup are both FALSE.
MR> _with_mnemonic calls set use_underline to TRUE.

 Yes, you're totally correct. Adding gtk_label_set_use_underline(FALSE)
before calling gtk_label_set_attributes() does make it work. I've checked
in the simplest possible patch implementing support for underlined fonts.
Using -1 is nice as at least we don't have to update the attribute in
SetLabel() like this. But there are probably other places where the code
should be modified and it would need to be changed when/if we add support
for markup anyhow.

MR> > MR> I need to handle my reoccurring "Not enough free disk space" problems to
MR> > MR> get a local compilation of wx going again and try it inside wxGTK code.
MR> > 
MR> >  I need to learn how to use the GTK+ debug packages under Debian. For some
MR> > reason if I try to run any wx application with LD_LIBRARY_PATH set to
MR> > /usr/lib/debug/usr/lib it simply crashes (*without* any symbols in the
MR> > stack trace). I'm sure it must be something obvious but I still have no
MR> > idea what.
MR> 
MR> There are libraries in /usr/lib/debug/usr/lib?

 Well, I thought they were libraries (file(1) does say "ELF shared object"
for files like /usr/lib/debug/usr/lib/libglib-2.0.so.0.1200.4) but after
looking more carefully I realize that they are indeed not libraries at all.

MR> There should be only *.debug files that contain the debug ELF section
MR> of the library. A reasonably recent gdb should just understand it.

 And it does. If I don't make it crash by setting LD_LIBRARY_PATH first :-)

MR> LD_LIBRARY_PATH set to there shouldn't have any benefits or effects to
MR> my knowledge.

 I wouldn't call it a benefit but it certainly does have an effect.

MR> I believe wxStackWalker and co don't understand split debug files very
MR> well,

 If addr2line understands them, so should it. At least in this case we
didn't reinvent the wheel by parsing ELF ourselves.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list