Re: Scrolled text view problem
- From: Jan-Marek Glogowski <glogow fbihome de>
- To: Rob van der Leek <rob ricardis tudelft nl>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Scrolled text view problem
- Date: Tue, 3 Aug 2004 10:07:17 +0200 (CEST)
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);
Jan-Marek
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]