Ticket #276: navit_town_intl.diff

File navit_town_intl.diff, 1.3 KB (added by Flohack, 13 years ago)

Patch to add a Town (Intl.) button

  • navit/gui/internal/gui_internal.c

     
    27352735{
    27362736        if (this->sl)
    27372737                search_list_select(this->sl, attr_country_all, 0, 0);
    2738         gui_internal_search(this,_("Town"),"Town",1);
     2738        gui_internal_search(this,_("Town"),"Town",0);
    27392739}
    27402740
    27412741static void
     2742gui_internal_cmd_country(struct gui_priv *this, struct widget *wm, void *data)
     2743{
     2744        if (this->sl)
     2745                search_list_select(this->sl, attr_country_all, 0, 0);
     2746        gui_internal_search(this,_("Country"),"Country",1);
     2747}
     2748
     2749static void
    27422750gui_internal_cmd_layout(struct gui_priv *this, struct widget *wm, void *data)
    27432751{
    27442752        struct attr attr;
     
    28722880                        image_new_l(this, "gui_town"), gravity_center|orientation_vertical,
    28732881                        gui_internal_cmd_town, NULL));
    28742882        gui_internal_widget_append(w,
     2883                gui_internal_button_new_with_callback(this, _("Town (Intl.)"),
     2884                        image_new_l(this, "gui_town"), gravity_center|orientation_vertical,
     2885                        gui_internal_cmd_country, NULL));
     2886        gui_internal_widget_append(w,
    28752887                gui_internal_button_new_with_callback(this, _("Quit"),
    28762888                        image_new_l(this, "gui_quit"), gravity_center|orientation_vertical,
    28772889                        gui_internal_cmd_quit, NULL));