Why do recipe titles wrap on the Recipe Index

  • Anonymous

    Anonymous - 2010-12-29

    Recipe titles wrap to two lines on the index page. It makes it tough to view all the recipes.

    There is plenty of room to have them not wrap … is there a setting for that?


  • tom

    tom - 2010-12-29

    Unfortunately this is hard-coded. You can change it by finding the file recindex.py in your installation and changing the wrap-width - this is at line 359 in the HEAD version.

                           if c == 'title': renderer.set_property('wrap-width',200)
                            else: renderer.set_property('wrap-width',150)

    The numbers there are the number of pixels at which to start wrapping - 200 for the title and 150 for everything else. As I recall this has to be hard-coded to get wrapping to work at all. It's possible the latest GTK has some advances that would let me improve this. A temporary fix would be to just put in a number that works better for your screen (200 worked well in my experiment - obviously if you're working in wide screen or a small screen it makes a difference, as does your average title length.

  • Suze

    Suze - 2010-12-30

    thanks, Thomas
    I really appreciate all your hard work on this great program


Log in to post a comment.