[Xfce4-commits] r23222 - xarchiver/branches/xarchiver-psybsd/src
Stephan Arts
stephan at xfce.org
Thu Sep 28 08:21:01 UTC 2006
Author: stephan
Date: 2006-09-28 08:21:01 +0000 (Thu, 28 Sep 2006)
New Revision: 23222
Modified:
xarchiver/branches/xarchiver-psybsd/src/main_window.c
Log:
Notify the user when an archive can not be opened instead of silent
failure
Modified: xarchiver/branches/xarchiver-psybsd/src/main_window.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/main_window.c 2006-09-28 08:14:26 UTC (rev 23221)
+++ xarchiver/branches/xarchiver-psybsd/src/main_window.c 2006-09-28 08:21:01 UTC (rev 23222)
@@ -468,7 +468,12 @@
window->lp_xa_archive = NULL;
}
- xa_main_window_open_archive(window, open_archive_path);
+ if(xa_main_window_open_archive(window, open_archive_path))
+ {
+ gtk_widget_destroy (GTK_WIDGET (dialog) );
+ dialog = gtk_message_dialog_new(GTK_WINDOW(window), 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "Archive could not be opened");
+ gtk_dialog_run(GTK_DIALOG(dialog));
+ }
More information about the Xfce4-commits
mailing list