[gnome-commander] g_basename is deprecated



commit cf5225cd186d86a09abf4501f3f7dce0db89851c
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Sun May 31 16:13:59 2015 +0200

    g_basename is deprecated

 src/dialogs/gnome-cmd-prepare-xfer-dialog.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc b/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc
index 8d9289b..69f6b80 100644
--- a/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc
+++ b/src/dialogs/gnome-cmd-prepare-xfer-dialog.cc
@@ -146,7 +146,7 @@ static void on_ok (GtkButton *button, GnomeCmdPrepareXferDialog *dialog)
                     {
                         // Nothing exists, ask the user if a new directory might be suitable in the path 
that he specified
                         gchar *msg = g_strdup_printf (_("The directory '%s' doesn't exist, do you want to 
create it?"),
-                                                      g_basename (parent_dir));
+                                                      g_path_get_basename (parent_dir));
                         gint choice = run_simple_dialog (GTK_WIDGET (dialog), TRUE, GTK_MESSAGE_QUESTION, 
msg, "",
                                                          -1, _("No"), _("Yes"), NULL);
                         g_free (msg);
@@ -186,7 +186,7 @@ static void on_ok (GtkButton *button, GnomeCmdPrepareXferDialog *dialog)
             {
                 // Nothing exists, ask the user if a new directory might be suitable in the path that he 
specified
                 gchar *msg = g_strdup_printf (_("The directory '%s' doesn't exist, do you want to create 
it?"),
-                                              g_basename (dest_path));
+                                              g_path_get_basename (dest_path));
                 GtkWidget *dialog = gtk_message_dialog_new (*main_win,
                                                             (GtkDialogFlags) 0,
                                                             GTK_MESSAGE_QUESTION,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]