summaryrefslogtreecommitdiff
path: root/netspeed
diff options
context:
space:
mode:
authorBalló György <[email protected]>2026-10-18 08:14:50 +0200
committerVictor Kareh <[email protected]>2026-10-19 12:36:58 -0400
commitb9c7f05dca400eac0177f3e28d1c49895098841c (patch)
tree0b5e5f7df9e4fa051f7c5f96cbbd9169234b9509 /netspeed
parentdab9d51f1145487eaac4312736fb275628a441d4 (diff)
downloadmate-applets-b9c7f05dca400eac0177f3e28d1c49895098841c.tar.bz2
mate-applets-b9c7f05dca400eac0177f3e28d1c49895098841c.tar.xz
Set gettext domain for GtkBuilder
The translation domain needs to be set before loading GtkBuilder files to get the translated strings when the applets are built as in-process.
Diffstat (limited to 'netspeed')
-rw-r--r--netspeed/src/netspeed.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c
index 73185abd3..01ebf29fb 100644
--- a/netspeed/src/netspeed.c
+++ b/netspeed/src/netspeed.c
@@ -1185,7 +1185,11 @@ showinfo_cb (GtkAction *action,
return;
}
- builder = gtk_builder_new_from_resource (NETSPEED_RESOURCE_PATH "netspeed-details.ui");
+ builder = gtk_builder_new ();
+ gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
+ gtk_builder_add_from_resource (builder,
+ NETSPEED_RESOURCE_PATH "netspeed-details.ui",
+ NULL);
netspeed->details = GET_WIDGET ("dialog");
netspeed->drawingarea = GET_DRAWING_AREA ("drawingarea");