diff options
Diffstat (limited to 'gst/gobject2gtk.c')
-rw-r--r-- | gst/gobject2gtk.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gst/gobject2gtk.c b/gst/gobject2gtk.c index 72165d39c..563711744 100644 --- a/gst/gobject2gtk.c +++ b/gst/gobject2gtk.c @@ -23,7 +23,26 @@ g_slist_delete_link (GSList *list, GSList *llink) return temp; } +// string helper functions not in glib 1.2 +gchar* +g_strcanon (gchar *string, + const gchar *valid_chars, + gchar substitutor) +{ + register gchar *c; + + g_return_val_if_fail (string != NULL, NULL); + g_return_val_if_fail (valid_chars != NULL, NULL); + + for (c = string; *c; c++) + { + if (!strchr (valid_chars, *c)) + *c = substitutor; + } + + return string; +} // GObject dummy implementation static void |