[maemo-commits] [maemo-commits] r9065 - in projects/haf/trunk/osso-application-installer: . src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Jan 11 16:10:36 EET 2007
- Previous message: [maemo-commits] r9064 - in projects/haf/branches/maemo-af-desktop: . todo-plugin todo-plugin/src
- Next message: [maemo-commits] r9066 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . contrib contrib/gdk-pixbuf-xlib demos demos/gtk-demo docs docs/faq docs/reference docs/reference/gdk docs/reference/gdk-pixbuf docs/reference/gtk docs/tools docs/tutorial gdk gdk/directfb gdk/linux-fb gdk/quartz gdk/win32 gdk/win32/rc gdk/x11 gdk-pixbuf gdk-pixbuf/pixops gtk gtk/stock-icons gtk/stock-icons/16 gtk/stock-icons/24 gtk/theme-bits gtk/xdgmime m4macros modules modules/engines modules/engines/ms-windows modules/engines/ms-windows/Theme modules/engines/ms-windows/Theme/gtk-2.0 modules/engines/pixbuf modules/input modules/printbackends modules/printbackends/cups modules/printbackends/file modules/printbackends/lpr perf po po-properties tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: marivoll Date: 2007-01-11 16:10:34 +0200 (Thu, 11 Jan 2007) New Revision: 9065 Modified: projects/haf/trunk/osso-application-installer/ChangeLog projects/haf/trunk/osso-application-installer/src/menu.cc Log: * src/menu.cc (noop_result, menu_close): Reverted change from 2007-01-10. It is better to exit immediately and hope that the user doesn't relaunch immediately. Modified: projects/haf/trunk/osso-application-installer/ChangeLog =================================================================== --- projects/haf/trunk/osso-application-installer/ChangeLog 2007-01-11 13:53:40 UTC (rev 9064) +++ projects/haf/trunk/osso-application-installer/ChangeLog 2007-01-11 14:10:34 UTC (rev 9065) @@ -1,3 +1,9 @@ +2007-01-11 Marius Vollmer <marius.vollmer at nokia.com> + + * src/menu.cc (noop_result, menu_close): Reverted change from + 2007-01-10. It is better to exit immediately and hope that the + user doesn't relaunch immediately. + 2007-01-10 Marius Vollmer <marius.vollmer at nokia.com> * src/menu.cc (noop_result): New. Modified: projects/haf/trunk/osso-application-installer/src/menu.cc =================================================================== --- projects/haf/trunk/osso-application-installer/src/menu.cc 2007-01-11 13:53:40 UTC (rev 9064) +++ projects/haf/trunk/osso-application-installer/src/menu.cc 2007-01-11 14:10:34 UTC (rev 9065) @@ -91,26 +91,27 @@ } static void -noop_result (int cmd, apt_proto_decoder *dec, void *data) +menu_close () { - /* Even if we couldn't send the command, we just exit. That way, - closing the application twice will reliably terminate it. + /* XXX - Sometimes the apt-worker is still performing some + background processing at this time and it wont quit + immediately when we do. The problem with this is that the + Application Manager will not launch again until the old + apt-worker process has finally exited. + + We could wait here until the apt-worker is idle (by issuing + a NOOP command for example and waiting for the reply), but + UI-wise it is better to just quit immediately and hope that + the user doesn't restart the Application Manager + immediately. + + The real fix would be to make the Application Manager + robust against startup problems of the apt-worker. */ + exit (0); } -static void -menu_close () -{ - /* XXX - Wait for the apt-worker to be idle. Otherwise the - Application Manager will not start when it is launched - again immediately. - */ - show_updating (); - allow_updating (); - apt_worker_noop (noop_result, NULL); -} - static GtkWidget *details_menu_item = NULL; static GtkWidget *search_menu_item = NULL; static GtkWidget *operation_menu_item = NULL;
- Previous message: [maemo-commits] r9064 - in projects/haf/branches/maemo-af-desktop: . todo-plugin todo-plugin/src
- Next message: [maemo-commits] r9066 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . contrib contrib/gdk-pixbuf-xlib demos demos/gtk-demo docs docs/faq docs/reference docs/reference/gdk docs/reference/gdk-pixbuf docs/reference/gtk docs/tools docs/tutorial gdk gdk/directfb gdk/linux-fb gdk/quartz gdk/win32 gdk/win32/rc gdk/x11 gdk-pixbuf gdk-pixbuf/pixops gtk gtk/stock-icons gtk/stock-icons/16 gtk/stock-icons/24 gtk/theme-bits gtk/xdgmime m4macros modules modules/engines modules/engines/ms-windows modules/engines/ms-windows/Theme modules/engines/ms-windows/Theme/gtk-2.0 modules/engines/pixbuf modules/input modules/printbackends modules/printbackends/cups modules/printbackends/file modules/printbackends/lpr perf po po-properties tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]