summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-10-18 13:10:08 +0000
committerMartin Baulig <martin@src.gnome.org>1998-10-18 13:10:08 +0000
commit7dbb5755a4cafc45108ec66ac89dfc1f11639494 (patch)
tree1473dff62db049cb85cb15a22f3b910a5657092b
parenteff33964d753abf04786ce1f03a8cffff5a76cd2 (diff)
downloadgtk+-7dbb5755a4cafc45108ec66ac89dfc1f11639494.tar.gz
new function to toggle line wrapping like gtk_text_set_word_wrap ()
1998-10-18 Martin Baulig <martin@home-of-linux.org> * gtk/gtktext.c (gtk_text_set_line_wrap): new function to toggle line wrapping like gtk_text_set_word_wrap () toggles word wrapping.
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-2-05
-rw-r--r--ChangeLog.pre-2-105
-rw-r--r--ChangeLog.pre-2-25
-rw-r--r--ChangeLog.pre-2-45
-rw-r--r--ChangeLog.pre-2-65
-rw-r--r--ChangeLog.pre-2-85
-rw-r--r--gtk/gtktext.c16
-rw-r--r--gtk/gtktext.h2
9 files changed, 53 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 552a072aad..95ed025751 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-10-18 Martin Baulig <martin@home-of-linux.org>
+
+ * gtk/gtktext.c (gtk_text_set_line_wrap): new function to toggle
+ line wrapping like gtk_text_set_word_wrap () toggles word wrapping.
+
Fri Oct 16 15:59:02 1998 Lars Hamann <lars@gtk.org>
* gtk/testgtk.c (insert_row_clist) (create_clist): change a few cell
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 552a072aad..95ed025751 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,8 @@
+1998-10-18 Martin Baulig <martin@home-of-linux.org>
+
+ * gtk/gtktext.c (gtk_text_set_line_wrap): new function to toggle
+ line wrapping like gtk_text_set_word_wrap () toggles word wrapping.
+
Fri Oct 16 15:59:02 1998 Lars Hamann <lars@gtk.org>
* gtk/testgtk.c (insert_row_clist) (create_clist): change a few cell
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 552a072aad..95ed025751 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,8 @@
+1998-10-18 Martin Baulig <martin@home-of-linux.org>
+
+ * gtk/gtktext.c (gtk_text_set_line_wrap): new function to toggle
+ line wrapping like gtk_text_set_word_wrap () toggles word wrapping.
+
Fri Oct 16 15:59:02 1998 Lars Hamann <lars@gtk.org>
* gtk/testgtk.c (insert_row_clist) (create_clist): change a few cell
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 552a072aad..95ed025751 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,8 @@
+1998-10-18 Martin Baulig <martin@home-of-linux.org>
+
+ * gtk/gtktext.c (gtk_text_set_line_wrap): new function to toggle
+ line wrapping like gtk_text_set_word_wrap () toggles word wrapping.
+
Fri Oct 16 15:59:02 1998 Lars Hamann <lars@gtk.org>
* gtk/testgtk.c (insert_row_clist) (create_clist): change a few cell
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 552a072aad..95ed025751 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,8 @@
+1998-10-18 Martin Baulig <martin@home-of-linux.org>
+
+ * gtk/gtktext.c (gtk_text_set_line_wrap): new function to toggle
+ line wrapping like gtk_text_set_word_wrap () toggles word wrapping.
+
Fri Oct 16 15:59:02 1998 Lars Hamann <lars@gtk.org>
* gtk/testgtk.c (insert_row_clist) (create_clist): change a few cell
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 552a072aad..95ed025751 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,8 @@
+1998-10-18 Martin Baulig <martin@home-of-linux.org>
+
+ * gtk/gtktext.c (gtk_text_set_line_wrap): new function to toggle
+ line wrapping like gtk_text_set_word_wrap () toggles word wrapping.
+
Fri Oct 16 15:59:02 1998 Lars Hamann <lars@gtk.org>
* gtk/testgtk.c (insert_row_clist) (create_clist): change a few cell
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 552a072aad..95ed025751 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,8 @@
+1998-10-18 Martin Baulig <martin@home-of-linux.org>
+
+ * gtk/gtktext.c (gtk_text_set_line_wrap): new function to toggle
+ line wrapping like gtk_text_set_word_wrap () toggles word wrapping.
+
Fri Oct 16 15:59:02 1998 Lars Hamann <lars@gtk.org>
* gtk/testgtk.c (insert_row_clist) (create_clist): change a few cell
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 83088c7cf6..b07e3b98af 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -626,6 +626,22 @@ gtk_text_set_word_wrap (GtkText *text,
}
void
+gtk_text_set_line_wrap (GtkText *text,
+ gint line_wrap)
+{
+ g_return_if_fail (text != NULL);
+ g_return_if_fail (GTK_IS_TEXT (text));
+
+ text->line_wrap = (line_wrap != FALSE);
+
+ if (GTK_WIDGET_REALIZED (text))
+ {
+ recompute_geometry (text);
+ gtk_widget_queue_draw (GTK_WIDGET (text));
+ }
+}
+
+void
gtk_text_set_editable (GtkText *text,
gboolean is_editable)
{
diff --git a/gtk/gtktext.h b/gtk/gtktext.h
index 1aba9a1a79..7018667c1e 100644
--- a/gtk/gtktext.h
+++ b/gtk/gtktext.h
@@ -166,6 +166,8 @@ void gtk_text_set_editable (GtkText *text,
gboolean editable);
void gtk_text_set_word_wrap (GtkText *text,
gint word_wrap);
+void gtk_text_set_line_wrap (GtkText *text,
+ gint line_wrap);
void gtk_text_set_adjustments (GtkText *text,
GtkAdjustment *hadj,
GtkAdjustment *vadj);