summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-05-04 18:21:48 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-05-04 18:21:48 +0200
commitfb01d4e9ab9739e11499538d85e8932fb97a2c57 (patch)
tree46d0d3e258b2c7b929dce76ab43723e2b79b3c0a /src/fe-gtk
parentb2317d88007270f8b49d3282face90a7f2716e7d (diff)
Replace g_strdup_printf with g_build_filename where possible
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/menu.c2
-rw-r--r--src/fe-gtk/plugingui.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-gtk/menu.c b/src/fe-gtk/menu.c
index e6fef6a0..f0f49730 100644
--- a/src/fe-gtk/menu.c
+++ b/src/fe-gtk/menu.c
@@ -281,7 +281,7 @@ menu_quick_item (char *cmd, char *label, GtkWidget * menu, int flags,
 			else
 			{
 				/* try relative to <xdir> */
-				path = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "%s", get_xdir (), icon);
+				path = g_build_filename (get_xdir (), icon, NULL);
 				if (access (path, R_OK) == 0)
 					img = gtk_image_new_from_file (path);
 				else
diff --git a/src/fe-gtk/plugingui.c b/src/fe-gtk/plugingui.c
index 48152d78..129d88ac 100644
--- a/src/fe-gtk/plugingui.c
+++ b/src/fe-gtk/plugingui.c
@@ -133,7 +133,7 @@ plugingui_load (void)
 {
 	char *sub_dir;
 
-	sub_dir = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "addons", get_xdir());
+	sub_dir = g_build_filename (get_xdir(), "addons", NULL);
 
 	gtkutil_file_req (_("Select a Plugin or Script to load"), plugingui_load_cb, current_sess,
 #ifdef WIN32