From 2bf99bb12e1d4bc9e35c2ef52f55af7b89751c3f Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Mon, 28 Jan 2008 15:16:13 +0000 Subject: [PATCH] gtk/gtktextchild.c meant to use G_STRFUNC, not G_STRLOC... 2008-01-28 Michael Natterer * gtk/gtktextchild.c * gtk/gtktextview.c: meant to use G_STRFUNC, not G_STRLOC... svn path=/trunk/; revision=19418 --- ChangeLog | 5 +++++ gtk/gtktextchild.c | 4 ++-- gtk/gtktextview.c | 14 +++++++------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 00761f4dd9..d1eb34ab61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-28 Michael Natterer + + * gtk/gtktextchild.c + * gtk/gtktextview.c: meant to use G_STRFUNC, not G_STRLOC... + 2008-01-28 Michael Natterer * demos/gtk-demo/builder.c (about_activate): use diff --git a/gtk/gtktextchild.c b/gtk/gtktextchild.c index 04adddad30..3809fcbf6d 100644 --- a/gtk/gtktextchild.c +++ b/gtk/gtktextchild.c @@ -60,7 +60,7 @@ if ((anchor)->segment == NULL) \ { \ g_warning ("%s: GtkTextChildAnchor hasn't been in a buffer yet",\ - G_STRLOC); \ + G_STRFUNC); \ } \ } G_STMT_END @@ -69,7 +69,7 @@ if ((anchor)->segment == NULL) \ { \ g_warning ("%s: GtkTextChildAnchor hasn't been in a buffer yet",\ - G_STRLOC); \ + G_STRFUNC); \ return (val); \ } \ } G_STMT_END diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 5f18ec01ea..593467282b 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -7935,7 +7935,7 @@ text_window_invalidate_rect (GtkTextWindow *win, break; default: - g_warning ("%s: bug!", G_STRLOC); + g_warning ("%s: bug!", G_STRFUNC); return; break; } @@ -8102,12 +8102,12 @@ gtk_text_view_get_window (GtkTextView *text_view, break; case GTK_TEXT_WINDOW_PRIVATE: - g_warning ("%s: You can't get GTK_TEXT_WINDOW_PRIVATE, it has \"PRIVATE\" in the name because it is private.", G_STRLOC); + g_warning ("%s: You can't get GTK_TEXT_WINDOW_PRIVATE, it has \"PRIVATE\" in the name because it is private.", G_STRFUNC); return NULL; break; } - g_warning ("%s: Unknown GtkTextWindowType", G_STRLOC); + g_warning ("%s: Unknown GtkTextWindowType", G_STRFUNC); return NULL; } @@ -8275,11 +8275,11 @@ gtk_text_view_buffer_to_window_coords (GtkTextView *text_view, break; case GTK_TEXT_WINDOW_PRIVATE: - g_warning ("%s: can't get coords for private windows", G_STRLOC); + g_warning ("%s: can't get coords for private windows", G_STRFUNC); break; default: - g_warning ("%s: Unknown GtkTextWindowType", G_STRLOC); + g_warning ("%s: Unknown GtkTextWindowType", G_STRFUNC); break; } } @@ -8415,11 +8415,11 @@ gtk_text_view_window_to_buffer_coords (GtkTextView *text_view, break; case GTK_TEXT_WINDOW_PRIVATE: - g_warning ("%s: can't get coords for private windows", G_STRLOC); + g_warning ("%s: can't get coords for private windows", G_STRFUNC); break; default: - g_warning ("%s: Unknown GtkTextWindowType", G_STRLOC); + g_warning ("%s: Unknown GtkTextWindowType", G_STRFUNC); break; } }