Re: Scrolled text view problem
- From: Rob van der Leek <rob ricardis tudelft nl>
- To: gtk-app-devel-list gnome org
- Subject: Re: Scrolled text view problem
- Date: Tue, 3 Aug 2004 18:56:53 +0200
On Tue (Aug 03) at 10:07, Jan-Marek Glogowski wrote:
Hi
GtkTextView has it's own viewport, otherwise your code works as expected.
text_view = gtk_text_view_new();
gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text_view), GTK_WRAP_WORD);
gtk_text_view_set_editable(GTK_TEXT_VIEW(text_view), FALSE);
// gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolled_window),
// text_view);
gtk_container_add(GTK_CONTAINER(main_window), scrolled_window);
gtk_container_add(GTK_CONTAINER(scrolled_window), text_view);
g_signal_connect(G_OBJECT(main_window), "delete_event",
G_CALLBACK(gtk_main_quit), NULL);
Thanks Jan-Marek! It works fine now.
Regards,
--
Rob van der Leek | rob(at)ricardis(dot)tudelft(dot)nl
Ricardishof 73-A | http://www.ricardis.tudelft.nl/~rob
2614 JE Delft, The Netherlands
+31 (0)6 155 244 60
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]