summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-31 22:46:46 +0100
committerraveit65 <[email protected]>2022-02-11 17:36:00 +0100
commit22800a23cf9536e32994fc847585281079221f63 (patch)
treed493b95ff46b46edc5aad29e915f676844194d51
parent651b22791ed39fc3b9e5634c14db629e88cc15bf (diff)
downloadmate-utils-22800a23cf9536e32994fc847585281079221f63.tar.bz2
mate-utils-22800a23cf9536e32994fc847585281079221f63.tar.xz
gdict-applet: do not build the file path
-rw-r--r--mate-dictionary/src/gdict-applet.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mate-dictionary/src/gdict-applet.c b/mate-dictionary/src/gdict-applet.c
index 26a76cf0..3c1e3a05 100644
--- a/mate-dictionary/src/gdict-applet.c
+++ b/mate-dictionary/src/gdict-applet.c
@@ -1183,7 +1183,6 @@ gdict_applet_factory (MatePanelApplet *applet,
gpointer data)
{
gboolean retval = FALSE;
- gchar *ui_path;
GdictApplet *dictionary_applet = GDICT_APPLET (applet);
GdictAppletPrivate *priv = dictionary_applet->priv;
@@ -1199,10 +1198,9 @@ gdict_applet_factory (MatePanelApplet *applet,
gdict_applet_menu_actions,
G_N_ELEMENTS (gdict_applet_menu_actions),
applet);
- ui_path = g_build_filename(PKGDATADIR, "dictionary-applet-menu.xml", NULL);
- mate_panel_applet_setup_menu_from_file (applet, ui_path,
+ mate_panel_applet_setup_menu_from_file (applet,
+ PKGDATADIR "/dictionary-applet-menu.xml",
priv->context_menu_action_group);
- g_free (ui_path);
gtk_widget_show (GTK_WIDGET (applet));