summaryrefslogtreecommitdiff
path: root/gtk/gtktext.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-03-16 20:12:40 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-03-16 20:12:40 +0000
commit52658cd3dc2ec01fe9cfcb5f9253b00febc8e039 (patch)
tree8e6c0e02a5385ef57bc341284d4c4bbc7e467d7d /gtk/gtktext.c
parente7a21a2eec40ddb38e4b27b4fe818dbd20351259 (diff)
downloadgtk+-52658cd3dc2ec01fe9cfcb5f9253b00febc8e039.tar.gz
Applied patch from Nils Barth (bug # 51041) to replace "gint" with
2001-03-16 Havoc Pennington <hp@redhat.com> * Applied patch from Nils Barth (bug # 51041) to replace "gint" with "gboolean" and 0/1 with TRUE/FALSE in various places.
Diffstat (limited to 'gtk/gtktext.c')
-rw-r--r--gtk/gtktext.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 5a8d86f1a1..f44e9b8017 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -745,7 +745,7 @@ gtk_text_new (GtkAdjustment *hadj,
void
gtk_text_set_word_wrap (GtkText *text,
- gint word_wrap)
+ gboolean word_wrap)
{
g_return_if_fail (text != NULL);
g_return_if_fail (GTK_IS_TEXT (text));
@@ -761,7 +761,7 @@ gtk_text_set_word_wrap (GtkText *text,
void
gtk_text_set_line_wrap (GtkText *text,
- gint line_wrap)
+ gboolean line_wrap)
{
g_return_if_fail (text != NULL);
g_return_if_fail (GTK_IS_TEXT (text));
@@ -1047,12 +1047,12 @@ gtk_text_insert (GtkText *text,
gtk_text_thaw (text);
}
-gint
+gboolean
gtk_text_backward_delete (GtkText *text,
guint nchars)
{
- g_return_val_if_fail (text != NULL, 0);
- g_return_val_if_fail (GTK_IS_TEXT (text), 0);
+ g_return_val_if_fail (text != NULL, FALSE);
+ g_return_val_if_fail (GTK_IS_TEXT (text), FALSE);
if (nchars > text->point.index || nchars <= 0)
return FALSE;
@@ -1062,7 +1062,7 @@ gtk_text_backward_delete (GtkText *text,
return gtk_text_forward_delete (text, nchars);
}
-gint
+gboolean
gtk_text_forward_delete (GtkText *text,
guint nchars)
{
@@ -1070,8 +1070,8 @@ gtk_text_forward_delete (GtkText *text,
GtkOldEditable *old_editable = GTK_OLD_EDITABLE (text);
gboolean frozen = FALSE;
- g_return_val_if_fail (text != NULL, 0);
- g_return_val_if_fail (GTK_IS_TEXT (text), 0);
+ g_return_val_if_fail (text != NULL, FALSE);
+ g_return_val_if_fail (GTK_IS_TEXT (text), FALSE);
if (text->point.index + nchars > TEXT_LENGTH (text) || nchars <= 0)
return FALSE;