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.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to