Add wrap attribute for labels.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 22 Apr 2007 03:09:35 +0000 (03:09 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 22 Apr 2007 03:09:35 +0000 (03:09 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@957 959494ce-11ee-0310-bf91-de5d638817bd

common/makegdesc

index f1df250..cf91c40 100755 (executable)
@@ -117,6 +117,9 @@ sub printwidgets
        } elsif($widget->{"type"} eq "lbl") {
            $widget->{"label"} || die("Can't have label without label\n");
            print "${p}stack[$sl] = gtk_label_new(_(\"" . $widget->{"label"} . "\"));\n";
+           if($widget->{"wrap"} eq "y") {
+               print "${p}gtk_label_set_line_wrap(GTK_LABEL(stack[$sl]), TRUE);\n";
+           }
        } elsif($widget->{"type"} eq "mlbl") {
            $widget->{"label"} || die("Can't have label without label\n");
            print "${p}stack[$sl] = gtk_label_new_with_mnemonic(_(\"" . $widget->{"label"} . "\"));\n";