Ticket #723: gui-gtk-quit.patch

File gui-gtk-quit.patch, 1.1 KB (added by pini, 10 years ago)

Patch to call event_main_loop_quit() right after navit_destroy() for gui/gtk

  • navit/gui/gtk/gui_gtk_action.c

    Description: Properly quit Navit when the quit command is selected under
     gui/gtk. Fixes upstream #850.
    Author: Gilles Filippini <pini@debian.org>
    Forwarded: http://trac.navit-project.org/ticket/850
    Last-Update: 2011-05-22
    old new  
    189189quit_action (GtkWidget *w, struct gui_priv *gui, void *dummy)
    190190{
    191191        navit_destroy(gui->nav);
     192        event_main_loop_quit();
    192193}
    193194
    194195static GtkActionEntry entries[] =
  • navit/gui/gtk/gui_gtk_window.c

    old new  
    296296{
    297297        /* FIXME remove attr_navit callback */
    298298        navit_destroy(nav);
     299        event_main_loop_quit();
    299300
    300301        return TRUE;
    301302}