After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 338149 - About dialog comment not shown correctly
About dialog comment not shown correctly
Status: RESOLVED DUPLICATE of bug 438752
Product: gtk+
Classification: Platform
Component: Widget: Other
2.12.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 508811
 
 
Reported: 2006-04-11 23:26 UTC by Thomas Andersen
Modified: 2008-01-12 20:12 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Screenshot showing the problem (79.97 KB, image/png)
2006-04-18 23:13 UTC, Thomas Andersen
Details
Screenshot with slightly changed text (73.65 KB, image/png)
2006-04-18 23:26 UTC, Thomas Andersen
Details

Description Thomas Andersen 2006-04-11 23:26:39 UTC
Please describe the problem:
With some special strings set as commment the About dialog does not show them
correctly.

The string 
"AisleRiot provides a rule-based solitaire card engine that allows many
different games to be played."
has 2 problems. 

1) The string gets wrapped, but it looks as if the dialog box is not resized, so
some of the text is not shown in the right side. Altering the text a bit will
make the dialog box wider and all text is shown.
If the text is selected and copied and pasted elsewhere the text missing from
the right side is still there.

2) for some reason the . is no longer present at the end of the string. Other
strings with an . at the end has it shown. And replacing it with e.g. a comma
the comma will be shown.

I have tried a few different combinations of text to find a pattern but not
really succeded.

The string is a bit special because of the many i's in it. 



Steps to reproduce:
gtk_show_about_dialog (GTK_WINDOW (app),
			 "comments", _("AisleRiot provides a rule-based solitaire card engine that
allows many different games to be played."), NULL);



Actual results:
Some of the text i not shown on the right side.
The . is removed from the text.

Expected results:
Dialog box is expanded horizontally to fit the text inside.
The . should still be there at the end of the text.

Does this happen every time?
yes

Other information:
Here is the result of a few tests I did:

"WwwwwWwww wwwwwwww w wwww-wwwww wwwwwwwww wwww wwwwww wwww wwwwww wwww
wwwwwwwww wwwww ww ww wwwwww."	OKAY
"BbbbbBbbb bbbbbbbb b bbbb-bbbbb bbbbbbbbb bbbb bbbbbb bbbb bbbbbb bbbb
bbbbbbbbb bbbbb bb bb bbbbbb."	OKAY
"IiiiiIiii iiiiiiii i iiii-iiiii iiiiiiiii iiii iiiiii iiii iiiiii iiii
iiiiiiiii iiiii ii ii iiiiii."	OKAY

"BbbbbBbbb bbbbbbbb b bbbb-bbbbb bbbbbbbbb card engine that allows many
different games to be played."	OKAY
"BbbbbBbbb bbbbbbbb b rule-based solitaire card engine that allows many
different games to be played."	OKAY
"BbbbbBbbb bbbbbbbb a rule-based solitaire card engine that allows many
different games to be played."	OKAY
"BbbbbBbbb provides a rule-based solitaire card engine that allows many
different games to be played."	OKAY -. (can be copy/pasted'ed)

"AosleRoot provodes a rule-based solotaore card engone that allows many
dofferent games to be played."	OKAY -. (can be copy/pasted'ed)

"WwwwwWwww wwwwwwww w wwww-wwwww wwwwwwwww wwww wwwwww wwww wwwwww wwww
wwwwwwwww wwwww ww ww played."	OKAY
"AisleRiot provides a rule-based solitaire card engine that allows many
different games to be played."	BAD  -. (can not be copy/pasted'ed)
"AisleRiot provides a rule-based solitaire card engine that allows many
different games to be bbbbbb."	BAD  +.
"AisleRiot provides a rule-based solitaire card engine that allows many
different games to bb bbbbbb."	BAD  +.
"AisleRiot provides a rule-based solitaire card engine that allows many
different bbbbb bb bb bbbbbb."	BAD  +.
"AisleRiot provides a rule-based solitaire card engine that allows bbbb
bbbbbbbbb bbbbb bb bb bbbbbb."	OKAY
"AisleRiot provides a rule-based solitaire card engine bbbb bbbbbb bbbb
bbbbbbbbb bbbbb bb bb bbbbbb."	OKAY
"This is a test string. The test string has the same length as the failing
string. test test test te."	OKAY
Comment 1 Matthias Clasen 2006-04-18 22:48:01 UTC
Can you provide a screenshot ?
Everything looks fine to me.
Comment 2 Thomas Andersen 2006-04-18 23:13:25 UTC
Created attachment 63837 [details]
Screenshot showing the problem

This is the most minimal test I could do. The problem exist too when authors, license, icon etc. are included.
Comment 3 Thomas Andersen 2006-04-18 23:26:41 UTC
Created attachment 63838 [details]
Screenshot with slightly changed text

Here I have changed all i's to o's in the string. Notice how the dialog box is resized horizontally to fit the text but the . at the end is still missing.

FWIW its performed on a updated ubuntu dapper drake. 
Tested at different resolutions including 1024*768 and 1600*1200.
Comment 4 André Klapper 2006-09-14 18:26:40 UTC
reopening as requested information has been provided.
Comment 5 Thomas Andersen 2008-01-11 16:30:24 UTC
Still seeing this with gtk 2.12 in aisleriot 2.20 and 2.21. I got confirmation on irc that this is an issue on both gutsy and f8, so this is not just an ubuntu issue.

From irc:
"<Juhaz> I tried with gutsy and f8 both cut (at different locations, though)"
Comment 6 Christian Persch 2008-01-12 20:12:28 UTC

*** This bug has been marked as a duplicate of 438752 ***