Commit f6f6a2a4 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

gtk/gtktextchild.c use G_STRLOC instead of G_GNUC_FUNCTION (which is

2008-01-28  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktextchild.c
	* gtk/gtktextview.c: use G_STRLOC instead of G_GNUC_FUNCTION (which
	is deprecated now).


svn path=/trunk/; revision=19416
parent 5feae00a
2008-01-28 Michael Natterer <mitch@imendio.com>
* gtk/gtktextchild.c
* gtk/gtktextview.c: use G_STRLOC instead of G_GNUC_FUNCTION (which
is deprecated now).
2008-01-26 Johan Dahlin <johan@gnome.org>
* tests/Makefile.am:
......
......@@ -55,21 +55,23 @@
#include "gtkintl.h"
#include "gtkalias.h"
#define CHECK_IN_BUFFER(anchor) \
G_STMT_START { \
if ((anchor)->segment == NULL) \
{ \
g_warning ("%s: GtkTextChildAnchor hasn't been in a buffer yet", G_GNUC_FUNCTION); \
} \
#define CHECK_IN_BUFFER(anchor) \
G_STMT_START { \
if ((anchor)->segment == NULL) \
{ \
g_warning ("%s: GtkTextChildAnchor hasn't been in a buffer yet",\
G_STRLOC); \
} \
} G_STMT_END
#define CHECK_IN_BUFFER_RETURN(anchor, val) \
G_STMT_START { \
if ((anchor)->segment == NULL) \
{ \
g_warning ("%s: GtkTextChildAnchor hasn't been in a buffer yet", G_GNUC_FUNCTION); \
return (val); \
} \
#define CHECK_IN_BUFFER_RETURN(anchor, val) \
G_STMT_START { \
if ((anchor)->segment == NULL) \
{ \
g_warning ("%s: GtkTextChildAnchor hasn't been in a buffer yet",\
G_STRLOC); \
return (val); \
} \
} G_STMT_END
static GtkTextLineSegment *
......
......@@ -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_GNUC_FUNCTION);
g_warning ("%s: You can't get GTK_TEXT_WINDOW_PRIVATE, it has \"PRIVATE\" in the name because it is private.", G_STRLOC);
return NULL;
break;
}
g_warning ("%s: Unknown GtkTextWindowType", G_GNUC_FUNCTION);
g_warning ("%s: Unknown GtkTextWindowType", G_STRLOC);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment