Re: Crashes with long words in strings passed to gtk_widget_set_tooltip_text()

2013-05-11 Thread Fabian Keil
Fabian Keil wrote: > Emmanuel Thomas-Maurin wrote: > > > On 04/21/2011 02:44 PM, Fabian Keil wrote: > > > > I haven't filed a bug report yet as it wasn't clear to me > > > if the behaviour is actually considered a bug. If there's > > >

Re: Crashes with long words in strings passed to gtk_widget_set_tooltip_text()

2011-04-21 Thread Fabian Keil
Emmanuel Thomas-Maurin wrote: > On 04/21/2011 02:44 PM, Fabian Keil wrote: > > I haven't filed a bug report yet as it wasn't clear to me > > if the behaviour is actually considered a bug. If there's > > an agreement that the behaviour is a bug, I wouldn&#x

Re: Crashes with long words in strings passed to gtk_widget_set_tooltip_text()

2011-04-21 Thread Fabian Keil
Emmanuel Thomas-Maurin wrote: > On 04/20/2011 09:42 PM, Fabian Keil wrote: > > I think even not showing a tooltip at all, or replacing the > > text provided by the application with something like > > "tooltip doesn't fit screen" would be a behaviour that is

Re: Crashes with long words in strings passed to gtk_widget_set_tooltip_text()

2011-04-20 Thread Fabian Keil
Emmanuel Thomas-Maurin wrote: > On 04/20/2011 02:34 AM, Morten Welinder wrote: > >> If you really want to safely pass a very long text, > >> you will have to know the font (family and size) then check with stuff > >> like pango_layout_set_text() and pango_layout_get_pixel_size(). The application

Crashes with long words in strings passed to gtk_widget_set_tooltip_text()

2011-04-19 Thread Fabian Keil
The attached example program (by Colin Leroy) passes a string with a long "word" to gtk_widget_set_tooltip_text() which causes a crash when the tooltip is supposed to be shown. (gdb) r --sync Starting program: /home/fk/kram/tooltip-crashes/long_tooltip_crash --sync [New LWP 101212] [New Thread 805

Crashes in gtk_file_chooser_set_current_name() with incorrect input encoding

2011-04-03 Thread Fabian Keil
's current behaviour is a bug, or if the described API violation is expected to cause undefined behaviour which includes crashes. Thanks for your input. Fabian From 2d3a68a47c20a7b375b2ffd4baac34089b9badd6 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 2 Apr 2011 21:30:53 +0200 Subject: