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

Widgets resources #523

Closed
wants to merge 7 commits into from
Closed

Conversation

dashea
Copy link
Contributor

@dashea dashea commented Feb 25, 2016

This is the master/f24 version of #518 plus a couple other things

We don't need to do that anymore. Switch the existing SGML to markdown.
Besides being a goal in itself, dumping SGML lets us more easily
continue to copy gtk for documentation templates.
guint is always pass by value, so there is no reference to transfer.
The various tools that consume these symbols assume that hyphens become
underscores when a property or signal name needs to become an
identifier, and having them start out as underscores throws them off.

Also add more hyphens to the chosen-changed signal documentation comment
to make gtk-doc happy.
@jkonecny12
Copy link
Member

Looks good to me. Thank you

@jkonecny12 jkonecny12 added the ACK label Feb 26, 2016
The resource bundle is automatically generated from whatever files are
in widgets/src/resources. The GResource object is accessible by
including resource.h and calling anaconda_widgets_get_resource(). The
individual files are accessible under the path
/org/fedoraproject/anaconda/widgets/<filename>.
This removes all public functions from widgets-common.c, so demote it to
undocumented and non-introspected.

This also removes the need for the ANACONDA_WIDGETS_DATA environment
variable (and the associated test), since this way there is no
filesystem location to override.
Provide names for the stylable internal widgets, and use CSS instead of
Pango attributes and markup to set the style attributes. This allows the
appearance of the anaconda widgets to be more easily modified by
product-specific stylesheets.

The new widget names are only applied to the leaf widgets (labels and
buttons and such) since making the containers mess-with-able sounds like
trouble, and the type and existence of the containers could change if we
decide to switch to gadget types.

As part of the changes for moving things to CSS, what looks like the
intent of anaconda_mountpoint_selector_toggle_background (unselected
selectors are gray, selected selectors are black) actually works now,
and the incomplete state of AnacondaSpokeSelector is now tied to the
inconsistent widget flag.

The CSS data is stored in regular CSS files that get compiled into
libAnacondaWidgets.so, since that seemed less gross than a bunch of
multi-line C strings.
@dashea
Copy link
Contributor Author

dashea commented Feb 26, 2016

Fixed the issues revealed by the tests

@jkonecny12
Copy link
Member

Still looks good to me :).

@dashea
Copy link
Contributor Author

dashea commented Mar 1, 2016

Pushed to master and f24.

@dashea dashea closed this Mar 1, 2016
@dashea dashea deleted the widgets-resources branch March 1, 2016 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants