gtk_label_set_ellipsize()? Vivien
2011/5/31 Maxime de Roucy <maxime.dero...@gmail.com>: > Thanks for your answer. > > What I want exactly is : > When the text in the GtkLabel is too long (it exceeds the widget size), > I want the text to get cut off by the edge of the widget. Instead of > increasing automatically the size of the Widget (and so the whole > window). > > Le Tue, 31 May 2011 14:46:20 +0200, > Emmanuel Thomas-Maurin <manutm...@gmail.com> a écrit : > >> On 05/31/2011 12:32 PM, Maxime de Roucy wrote: >> > Hello >> > >> > I have a Window containing >> > (gtk_container_add(window, box);) a GtkBox (which is a GtkVBox in >> > reality) ; this GtkBox containing a GtkHBox which contain a >> > GtkLabel. >> > >> > With Gtk2 : "the text get cut off by the edge of the widget if it >> > exceeds the widget size." >> > >> > But with Gtk3 the window extend itself when the text is too long. >> > >> > How can I avoid this behaviour ? >> > >> > I tried the set the window, the VBox and the HBox hexpand-set and >> > vexpand-set properties to FALSE. >> > But it doesn't change anything. >> > >> > I tried to set the Label gtk_label_set_max_width_chars but it >> > increase the heigh of the Label ... >> >> You may check out gtk_widget_set_size_request(). BTW, it's not clear >> what you want to do exactly. >> > > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list