-
Notifications
You must be signed in to change notification settings - Fork 730
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
Adds radio buttons and groups and checkboxes #1055
Conversation
Sample usage of radio buttons:
|
http://developer.gnome.org/gobject/stable/signal.html The notify:: signal is used when a property of an object has changed (e.g. notify::hover is emitted when the property "hover" of a button is changed). I think the signal should be called "radio-changed" instead of "notify::radio-changed" As a sidenote, shouldn't this be done in st instead? |
@dalcde I've changed the signal name. Thanks for pointing me at those docs, I had no idea it was being used to indicate property changed. |
Adds radio buttons and groups and checkboxes
Can I ask where checkboxes and radiobuttons are to be seen in Cinnamon? I can't reproduce a situation where either appear, and I can't find the radiobutton.svg's either anywhere on my system. cinnamon 1.6.0-20120918044007-precise |
Makefile was not updated. |
Ah, OK. |
@bimsebasse I think there are plans to use this in the sound applet but I could be mistaken. If you're still looking for an example of the checkboxes in use you could install the desktop-capture applet I've been working on (here on github) and choose to do an "Interactive" mode capture (after right-clicking applet and setting camera to "Cinnamon"). It shows a modal that displays both the checkboxes and radio buttons. I've been thinking it'd be nice to have a sample applet that uses every type of control available to demonstrate them for applet developers or be reference points for theme artists. |
Cheers rjanja - that's an excellent idea, actually, a reference applet, I'm gonna try to make one if no one else does. |
Following the discussion I had with @glebihan I've added radio buttons and checkboxes for building Cinnamon-looking controls.
The default look committed to Cinnamon theme lacks colour but if colour is desired I suggest adding a
background-color
to the StBin and thenbox-shadow
to each of the four StBin definitions.E.g.
Becomes: