Mult-line label vs. GTK_JUSTIFY_CENTER
- From: Szymon Polom <polom convergence de>
- To: gtk-devel-list gtk org
- Subject: Mult-line label vs. GTK_JUSTIFY_CENTER
- Date: Mon, 25 Jun 2001 15:52:44 +0200
Hello,
while porting a GTK+ 1.2.x application to GTK+ 1.3.x I have noticed, that my
mult-line labels labels are no longer centered.
The biggest line of a multi-line label seems to be justified as it should,
but all other lines of a mult-line label start a same (x) point a the
biggest line.
Is it a bug or a feature?
Example code:
sprintf(buffer, "%s\n-\nThis software comes with no WARRANTY at all.\nPlease refer to COPYING file for more information.", conDVD_copyright);
label = gtk_label_new(buffer);
gtk_label_set_justify(GTK_LABEL (label), GTK_JUSTIFY_CENTER);
gtk_container_add(GTK_CONTAINER (GTK_DIALOG (info_about_dialog)->vbox), label);
Bye... SP.
--
Szymon Polom | GPG Key-ID 1024D/E6EA36F2
convergence integrated media GmbH | http://www.convergence.de
Rosenthaler Str. 51 | fon: +49(0)30-72 62 06 68
D-10178 Berlin | fax: +49(0)30-72 62 06 55
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]