diff options
Diffstat (limited to 'src/empathy.c')
-rw-r--r-- | src/empathy.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/empathy.c b/src/empathy.c index 712632f7e..774365bf7 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -332,6 +332,9 @@ empathy_app_command_line (GApplication *app, { GError *error = NULL; TpDBusDaemon *dbus; + GtkBuilder *gui; + GMenuModel *menu; + char *filename; /* Create the FT factory */ self->ft_factory = empathy_ft_factory_dup_singleton (); @@ -349,6 +352,18 @@ empathy_app_command_line (GApplication *app, self->activated = TRUE; + /* set up the app menu */ + filename = empathy_file_lookup ( + "empathy-roster-window-menubar.ui", "src"); + gui = empathy_builder_get_file (filename, + "menubutton", &menu, + NULL); + + gtk_application_set_app_menu (GTK_APPLICATION (self), menu); + + g_free (filename); + g_object_unref (gui); + /* Setting up UI */ self->window = empathy_roster_window_new (GTK_APPLICATION (app)); |