After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757937 - shell: let GtkApplication load the appmenu
shell: let GtkApplication load the appmenu
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on: 757828
Blocks:
 
 
Reported: 2015-11-11 10:58 UTC by Felipe Borges
Modified: 2016-01-31 11:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shell: let GtkApplication load the appmenu (4.51 KB, patch)
2015-11-11 10:59 UTC, Felipe Borges
none Details | Review
shell: let GtkApplication load the appmenu (4.37 KB, patch)
2015-12-04 10:23 UTC, Felipe Borges
committed Details | Review

Description Felipe Borges 2015-11-11 10:58:39 UTC
.
Comment 1 Felipe Borges 2015-11-11 10:59:02 UTC
Created attachment 315247 [details] [review]
shell: let GtkApplication load the appmenu

Since bgo#757828 introduced g_application_set_resource_base_path,
we don't need to use a GtkBuilder to load the appmenu.

GtkApplication automatically loads menus from the GtkBuilder resource
located at "gtk/menus.ui", relative to the application's resource
base path (see g_application_set_resource_base_path ()). The menu
with the ID "app-menu" is taken as the application's app menu.
Comment 2 Carlos Garcia Campos 2015-12-02 11:17:31 UTC
Review of attachment 315247 [details] [review]:

So, I guess this also depends on a specific version of GTK.

::: shell/evince.gresource.xml
@@ +22,2 @@
   </gresource>
   <gresource prefix="/org/gnome/evince/shell">

So, we should definitely rename this I think :-)
Comment 3 Felipe Borges 2015-12-04 10:23:08 UTC
Created attachment 316755 [details] [review]
shell: let GtkApplication load the appmenu

Since bgo#757828 introduced g_application_set_resource_base_path,
we don't need to use a GtkBuilder to load the appmenu.

GtkApplication automatically loads menus from the GtkBuilder resource
located at "gtk/menus.ui", relative to the application's resource
base path (see g_application_set_resource_base_path ()). The menu
with the ID "app-menu" is taken as the application's app menu.
Comment 4 Felipe Borges 2015-12-04 10:23:40 UTC
(In reply to Carlos Garcia Campos from comment #2)
> Review of attachment 315247 [details] [review] [review]:
> 
> So, I guess this also depends on a specific version of GTK.
> 
> ::: shell/evince.gresource.xml
> @@ +22,2 @@
>    </gresource>
>    <gresource prefix="/org/gnome/evince/shell">
> 
> So, we should definitely rename this I think :-)

you're right. let's let this sleep for a while then.
Comment 5 Felipe Borges 2016-01-19 15:03:37 UTC
Since https://bugzilla.gnome.org/show_bug.cgi?id=757828 got merged, can you review this again?
Comment 6 Carlos Garcia Campos 2016-01-31 09:29:27 UTC
Comment on attachment 316755 [details] [review]
shell: let GtkApplication load the appmenu

Sure!
Comment 7 Felipe Borges 2016-01-31 11:26:04 UTC
Attachment 316755 [details] pushed as a05ec4a - shell: let GtkApplication load the appmenu