summaryrefslogtreecommitdiff
path: root/gtk/gtktextiter.c
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2003-03-13 12:24:20 +0000
committerSven Neumann <neo@src.gnome.org>2003-03-13 12:24:20 +0000
commit34276445ff6b8554eec95fad0b304cbc858a07bb (patch)
tree8d61667e5dcb2aa4b188a1a6b4f41397bd4d4456 /gtk/gtktextiter.c
parentb2698b3a58e9e070085475c2bc862b085ae8facd (diff)
downloadgtk+-34276445ff6b8554eec95fad0b304cbc858a07bb.tar.gz
removed redundant calls to g_object_notify().
2003-03-13 Sven Neumann <sven@gimp.org> * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property): removed redundant calls to g_object_notify(). (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see bug #108236. * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char) (_gtk_text_iter_get_segment_byte): return 0, not NULL (these functions return an integer value).
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r--gtk/gtktextiter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c
index 87fbe2db8c..823ddf253e 100644
--- a/gtk/gtktextiter.c
+++ b/gtk/gtktextiter.c
@@ -519,7 +519,7 @@ _gtk_text_iter_get_segment_byte (const GtkTextIter *iter)
{
GtkTextRealIter *real;
- g_return_val_if_fail (iter != NULL, NULL);
+ g_return_val_if_fail (iter != NULL, 0);
real = gtk_text_iter_make_real (iter);
@@ -538,7 +538,7 @@ _gtk_text_iter_get_segment_char (const GtkTextIter *iter)
{
GtkTextRealIter *real;
- g_return_val_if_fail (iter != NULL, NULL);
+ g_return_val_if_fail (iter != NULL, 0);
real = gtk_text_iter_make_real (iter);