From: John Darrington Date: Mon, 23 Mar 2009 08:44:05 +0000 (+0900) Subject: Convert filename on confirmation dialog X-Git-Tag: v0.7.3~205 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08c5dc634be53868ff996f24a765f89c61433377;p=pspp-builds.git Convert filename on confirmation dialog --- diff --git a/src/ui/gui/psppire-window.c b/src/ui/gui/psppire-window.c index b95e6a00..a02edb28 100644 --- a/src/ui/gui/psppire-window.c +++ b/src/ui/gui/psppire-window.c @@ -452,6 +452,7 @@ psppire_window_init (PsppireWindow *window) gint psppire_window_query_save (PsppireWindow *se) { + gchar *fn; gint response; GtkWidget *dialog; GtkWidget *cancel_button; @@ -468,13 +469,16 @@ psppire_window_query_save (PsppireWindow *se) g_return_val_if_fail (filename != NULL, GTK_RESPONSE_NONE); + fn = g_filename_display_basename (filename); + dialog = gtk_message_dialog_new (GTK_WINDOW (se), GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, _("Save the changes to \"%s\" before closing?"), - filename); + fn); + g_free (fn); g_object_set (dialog, "icon-name", "psppicon", NULL);