Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=08bbfd997a45f754383f15b672ec11a08922cdf6

commit 08bbfd997a45f754383f15b672ec11a08922cdf6
Author: Priyank <priy...@frugalware.org>
Date:   Mon Jun 8 22:25:58 2009 +0530

gfpm-inteface: gfpm should quit after performing an operation specified by an 
argument

diff --git a/src/gfpm-interface.c b/src/gfpm-interface.c
index 9f0a84e..7af1255 100644
--- a/src/gfpm-interface.c
+++ b/src/gfpm-interface.c
@@ -57,6 +57,8 @@ extern GfpmList *remove_list;
extern char     *repo;
extern gchar    *quickpane_pkg;

+static garg = 0;
+
/* current group the user is browsing */
/* used for refreshing the views after a package update */
gchar *current_group = NULL;
@@ -548,6 +550,7 @@ gfpm_interface_init (ARGS arg, void* argdata)
{
case ARG_ADD:
{
+                               garg = ARG_ADD;
/* Setup install from file dialog */
_gfpm_inst_from_file_dlg_init ();
if (geteuid()!=0)
@@ -2340,7 +2343,10 @@ cb_gfpm_install_file_clicked (GtkButton *button, 
gpointer data)
gtk_widget_hide (gfpm_inst_from_file_dlg);
if (gfpm_progress_is_autoclose_checkbtn_set())
gfpm_progress_show (FALSE);
-
+       if (garg == ARG_ADD)
+       {
+               gtk_main_quit();
+       }
return;
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to