summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));