Regression with label and max-width-chars in GTK3 notebooks?



With GTK2 you could

  gtk_label_set_max_width_chars(GTK_LABEL(label), 10);
  gtk_notebook_append_page_menu(GTK_NOTEBOOK(notebook), child, label, NULL);

to get a label cut short to a maximum of 10 characters.

With GTK3 this seems to be ignored.

Using max-width-chars is especially useful together with something like

  gtk_label_set_ellipsize(GTK_LABEL(label), PANGO_ELLIPSIZE_END);

but this gives even stranger results with GTK3 - cut short now, but to 2
characters with an ellipse.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]