mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
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.
This commit is contained in:
parent
eff33964d7
commit
7dbb5755a4
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -625,6 +625,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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user