Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect resource prefix in example #136

Open
jeremypw opened this issue Sep 14, 2021 · 0 comments
Open

Incorrect resource prefix in example #136

jeremypw opened this issue Sep 14, 2021 · 0 comments

Comments

@jeremypw
Copy link
Collaborator

What Happened

On the page https://docs.elementary.io/develop/apis/gresource, the example code:

protected override void activate () {
    Gtk.IconTheme.get_default ().add_resource_path ("com/github/yourusername/yourrepositoryname");

    var main_window = new Gtk.ApplicationWindow (this);
    main_window.show_all ();
}

shows a resource prefix that is not preceded by a /. This inconsistent with the resource definition file:

<?xml version="1.0" encoding="UTF-8"?>
<gresources>
  <gresource prefix="/com/github/yourusername/yourrepositoryname">
    <file compressed="true" preprocess="xml-stripblanks">custom-icon.svg</file>
  </gresource>
</gresources>

Expected Behavior

The resource prefix should be consistent throughout the examples

@jeremypw jeremypw changed the title Incorrect resource path in example Incorrect resource prefix in example Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant