Commit 4d609316 authored by Paolo Bacchilega's avatar Paolo Bacchilega Committed by Paolo Bacchilega

Fixed bug #162729: File Roller doesn't exit cleanly on invalid archive

2005-04-20  Paolo Bacchilega  <paobac@cvs.gnome.org>

        * src/main.c (main):

        Fixed bug #162729: File Roller doesn't exit cleanly on invalid
        archive extension.
parent fbd61c08
2005-04-20 Paolo Bacchilega <paobac@cvs.gnome.org>
* src/main.c (main):
Fixed bug #162729: File Roller doesn't exit cleanly on invalid
archive extension.
* src/dlg-prop.c (dlg_prop):
* src/dlg-batch-add.c (add_clicked_cb):
* src/dlg-add-folder.c (selection_changed_cb)
......
......@@ -22,6 +22,8 @@
#include <config.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
......
......@@ -21,6 +21,8 @@
*/
#include <config.h>
#include <string.h>
#include <libgnome/gnome-config.h>
#include <libgnomeui/gnome-client.h>
#include <libgnomeui/gnome-app.h>
......@@ -92,6 +94,26 @@ struct poptOption options[] = {
/* -- Main -- */
static guint startup_id = 0;
static poptContext pctx = NULL;
static gboolean
startup_cb (gpointer data)
{
g_source_remove (startup_id);
startup_id = 0;
initialize_data ();
prepare_app (pctx);
poptFreeContext (pctx);
pctx = NULL;
return FALSE;
}
int main (int argc, char **argv)
{
GnomeProgram *program;
......@@ -123,12 +145,8 @@ int main (int argc, char **argv)
glade_init ();
fr_stock_init ();
init_session (argv);
initialize_data ();
prepare_app (pctx);
poptFreeContext (pctx);
startup_id = g_idle_add (startup_cb, NULL);
gtk_main ();
release_data ();
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment