[Xfce4-commits] r23208 - xarchiver/branches/xarchiver-psybsd/src
Stephan Arts
stephan at xfce.org
Mon Sep 25 20:05:49 UTC 2006
Author: stephan
Date: 2006-09-25 20:05:48 +0000 (Mon, 25 Sep 2006)
New Revision: 23208
Modified:
xarchiver/branches/xarchiver-psybsd/src/main_window.c
Log:
added message-dialog saying 'view' is not supported yet.
Modified: xarchiver/branches/xarchiver-psybsd/src/main_window.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/main_window.c 2006-09-25 19:38:58 UTC (rev 23207)
+++ xarchiver/branches/xarchiver-psybsd/src/main_window.c 2006-09-25 20:05:48 UTC (rev 23208)
@@ -837,19 +837,21 @@
else
{
LXAEntry *entry = lxa_entry_get_child(((LXAEntry *)main_window->working_node->data), item_filename);
- if(g_slist_length(entry->children))
+ if(entry->is_folder)
{
main_window->working_node = g_slist_prepend(main_window->working_node, entry);
}
else
- { }
+ {
+ GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(main_window), 0, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, "Viewing of file is not yet implemented");
+ gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
+
+ }
}
items = ((LXAEntry *)main_window->working_node->data)->children;
-
if(items)
xa_main_window_set_contents(main_window, main_window->lp_xa_archive, items);
-/* else*/
- /* 'view' */
g_value_reset(value);
g_free(value);
More information about the Xfce4-commits
mailing list