Strip the prefix "IA__" from function names, since that is what GTK+ uses
authorMatthias Clasen <mclasen@redhat.com>
Thu, 9 Sep 2004 19:41:23 +0000 (19:41 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 9 Sep 2004 19:41:23 +0000 (19:41 +0000)
2004-09-09  Matthias Clasen  <mclasen@redhat.com>

* glib/gmessages.c (g_return_if_fail_warning): Strip the
prefix "IA__" from function names, since that is what
GTK+ uses for the PLT-reduction aliases.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gmessages.c

index d92f9eb..cfe668b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gmessages.c (g_return_if_fail_warning): Strip the
+       prefix "IA__" from function names, since that is what
+       GTK+ uses for the PLT-reduction aliases. 
+
 Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gmessages.c (g_return_if_fail_warning): 
index d92f9eb..cfe668b 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gmessages.c (g_return_if_fail_warning): Strip the
+       prefix "IA__" from function names, since that is what
+       GTK+ uses for the PLT-reduction aliases. 
+
 Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gmessages.c (g_return_if_fail_warning): 
index d92f9eb..cfe668b 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gmessages.c (g_return_if_fail_warning): Strip the
+       prefix "IA__" from function names, since that is what
+       GTK+ uses for the PLT-reduction aliases. 
+
 Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gmessages.c (g_return_if_fail_warning): 
index d92f9eb..cfe668b 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gmessages.c (g_return_if_fail_warning): Strip the
+       prefix "IA__" from function names, since that is what
+       GTK+ uses for the PLT-reduction aliases. 
+
 Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gmessages.c (g_return_if_fail_warning): 
index d92f9eb..cfe668b 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gmessages.c (g_return_if_fail_warning): Strip the
+       prefix "IA__" from function names, since that is what
+       GTK+ uses for the PLT-reduction aliases. 
+
 Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gmessages.c (g_return_if_fail_warning): 
index da1d939..8e33e08 100644 (file)
@@ -565,6 +565,12 @@ g_return_if_fail_warning (const char *log_domain,
                          const char *pretty_function,
                          const char *expression)
 {
+  /*
+   * Omit the prefix used by the PLT-reduction
+   * technique used in GTK+. 
+   */
+  if (g_str_has_prefix (pretty_function, "IA__"))
+    pretty_function += 4;
   g_log (log_domain,
         G_LOG_LEVEL_CRITICAL,
         "%s: assertion `%s' failed",