gtk - GtkLabel is not wrapping after updating its content -
here code using :
messagecrypte= gtk_label_new(""); gtk_widget_set_size_request(messagecrypte, 400, 100); gtk_label_set_line_wrap(gtk_label(messagecrypte), true); gtk_grid_attach(gtk_grid(crypttab), messagecrypte, 0, ++i, 2, 1);
when initialize label manually passing string gtk_label_new , text wrapped , when updating gtklabel , increment window size infinite without wrapping,
from docs :
note setting line wrapping true not make label wrap @ parent container’s width, because gtk+ widgets conceptually can’t make requisition depend on parent container’s size. label wraps @ specific position, set label’s width using gtk_widget_set_size_request().
i did said no results !
the problem in wrap mode , wrapd mode '...word' default that's mean wrap when : (the limit exceeded , there new word) entering string example dont contains space consider 1 word , when setting wrao mode '...char' wrap when : (the limit exceeded , there new char) 2nd condition verified ofcourse ,
Comments
Post a Comment