tInitial support for GtkTextView with colourised messages. - vaccinewars - be a doctor and try to vaccinate the world (HTM) git clone git://src.adamsgaard.dk/vaccinewars (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 5f1f6bff95d1bb2c9cf8eba570b85dd882c01181 (DIR) parent 30f1692c2ac8ea007e4dff293d852650255518bb (HTM) Author: Ben Webb <ben@salilab.org> Date: Thu, 4 Apr 2002 16:05:48 +0000 Initial support for GtkTextView with colourised messages. Diffstat: M src/gtkport/gtkport.c | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) --- (DIR) diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c t@@ -5055,6 +5055,19 @@ GtkWidget *gtk_scrolled_text_new(GtkAdjustment *hadj, GtkAdjustment *vadj, return text; } +GtkWidget *gtk_scrolled_text_view_new(GtkWidget **pack_widg) +{ + GtkWidget *textview, *scrollwin; + + textview = gtk_text_view_new(); + scrollwin = gtk_scrolled_window_new(NULL, NULL); + gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + gtk_container_add(GTK_CONTAINER(scrollwin), textview); + *pack_widg = scrollwin; + return textview; +} + static void DestroyGtkMessageBox(GtkWidget *widget, gpointer data) { gtk_main_quit();