From eab28f708171c710844bfac8621aae5802c8bef1 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Mon, 2 Mar 2026 11:31:33 +0600 Subject: [PATCH] Localisation fix --- source/ubinstall-gtk-region.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/ubinstall-gtk-region.c b/source/ubinstall-gtk-region.c index 5b49075..6beee65 100644 --- a/source/ubinstall-gtk-region.c +++ b/source/ubinstall-gtk-region.c @@ -105,6 +105,7 @@ void on_zone_changed(GtkWidget *, main_window *widgets){ void on_map_selection_changed(GtkWidget *,CcTimezoneLocation *location,main_window *widgets){ if (!location) return; g_signal_handlers_block_by_func(G_OBJECT(widgets->ZoneCombo),G_CALLBACK(on_zone_changed),widgets); + g_signal_handlers_block_by_func(G_OBJECT(widgets->RegionMapTarget),G_CALLBACK(on_map_selection_changed),widgets); g_signal_handlers_block_by_func(G_OBJECT(widgets->RegionEntry),G_CALLBACK(on_region_entry_changed),widgets); char *zone = yon_char_new(cc_timezone_location_get_zone(location)); char *region = yon_char_divide_search(zone,"/",-1); @@ -124,6 +125,7 @@ void on_map_selection_changed(GtkWidget *,CcTimezoneLocation *location,main_wind char *utc = yon_timezone_get_utc(tz); yon_map_status_show(widgets,NULL,MAP_TITLE_LABEL(utc),render); found = 1; + break; } } @@ -139,6 +141,7 @@ void on_map_selection_changed(GtkWidget *,CcTimezoneLocation *location,main_wind if (!yon_char_is_empty(region)) free(region); g_signal_handlers_unblock_by_func(G_OBJECT(widgets->ZoneCombo),G_CALLBACK(on_zone_changed),widgets); + g_signal_handlers_unblock_by_func(G_OBJECT(widgets->RegionMapTarget),G_CALLBACK(on_map_selection_changed),widgets); g_signal_handlers_unblock_by_func(G_OBJECT(widgets->RegionEntry),G_CALLBACK(on_region_entry_changed),widgets); }