summaryrefslogtreecommitdiff
path: root/src/tabpopup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabpopup.c')
-rw-r--r--src/tabpopup.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/tabpopup.c b/src/tabpopup.c
index 6d2660df..d3936b1f 100644
--- a/src/tabpopup.c
+++ b/src/tabpopup.c
@@ -98,20 +98,6 @@ outline_window_expose (GtkWidget *widget,
return FALSE;
}
-static char*
-utf8_strndup (const char *src,
- int n)
-{
- const gchar *s = src;
- while (n && *s)
- {
- s = g_utf8_next_char (s);
- n--;
- }
-
- return g_strndup (src, s - src);
-}
-
static GdkPixbuf*
dimm_icon (GdkPixbuf *pixbuf)
{
@@ -238,7 +224,7 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
tmp = markup;
}
- te->title = utf8_strndup (tmp, max_chars_per_title);
+ te->title = meta_g_utf8_strndup (tmp, max_chars_per_title);
g_free (tmp);
}
te->widget = NULL;