-
Notifications
You must be signed in to change notification settings - Fork 14
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
the stars displayed next to the fonts are unresponsive to clicks #16
Comments
Please also assign a milestone to each issue :) |
BTW How do you make these gif screencasts? :) |
I used this short version : On Mon, May 16, 2016 at 6:48 PM Dave Crossland notifications@github.com
|
The stars are displayed for the fonts which are hard coded in the array DEFAULT_FONTS = ['Sans', 'Serif', 'Monospace'], So to solve this properly I need to make a file in sugar stating the list of favourite fonts.
|
Please ask on sugar-devel :)
I think there is no meaning outside the activity; its just a way of marking fonts in a shortlist, similar to the 'collection' in www.google.com/fonts Its possible that we could have more than one 'favourite fonts' list, expanding the functionality to collections management; this is the functionality provided by the OS X "Font Book" font manager. Here's a screencast I just made showing the basic features of that: https://youtu.be/nYdPxfcZN6k Given there is only one 'favourite fonts' list, it would be good to have a visibility toggle to hide all the families not in the short list. It would also be good to have a way to see the styles within a family. |
@YashAgarwal when do you want to schedule this? |
This cell is not receiving any click events cell_favorite = CellRendererFavorite()
cell_favorite.connect('clicked', lambda _: logging.warning("Hello")) Is any other property I need to set to make it receive click events? I looked at the |
SOLVED cell_favorite = CellRendererClickablePixbuf()
loader = GdkPixbuf.PixbufLoader()
loader.write(svg_active.encode())
loader.close()
cell_favorite.props.pixbuf = loader.get_pixbuf()
cell_favorite.props.mode = Gtk.CellRendererMode.ACTIVATABLE
cell_favorite.connect('clicked', self.__favorite_clicked_cb) where this is the class CellRendererClickablePixbuf(Gtk.CellRendererPixbuf):
__gsignals__ = {
'clicked': (GObject.SignalFlags.RUN_FIRST, None,
([str]))
}
def __init__(self):
super(CellRendererClickablePixbuf, self).__init__()
self.props.icon_name = STAR_ICON_NAME
self.props.mode = Gtk.CellRendererMode.ACTIVATABLE
def do_activate(self, event, widget, path, background_area, cell_area,
flags):
self.emit('clicked', path) This solves this bug but I'll keep this open in case someone knows how this is done in the journal |
@YashAgarwal I suggest posting in the sugar-devel list with a subject similar to "Help needed with Sugar Journal style star'ing" :) |
I believe this now just needs to be confirmed in the next .xo build |
Inside the edit-font activity stars displayed next to the fonts are unresponsive and the selections can not be changed. The following GIF demonstrates the issue.
The text was updated successfully, but these errors were encountered: