1. 12 Apr, 2016 1 commit
  2. 07 Jul, 2015 1 commit
    • Emmanuele Bassi's avatar
      Move header inclusion guard at the top · 02b69e4d
      Emmanuele Bassi authored
      GCC has some optimization for the inclusion guard, but they only work if
      the check is the outermost one.
      We're fairly inconsistent because of historical reasons, so we should
      ensure that we follow the same pattern in every public header.
  3. 03 Jan, 2015 1 commit
    • Emmanuele Bassi's avatar
      WARNING: Massive revert commit · 77ec8774
      Emmanuele Bassi authored
      Revert all the work that happened on the master branch.
      Sadly, this is the only way to merge the current development branch back
      into master.
      It is now abundantly clear that I merged the 1.99 branch far too soon,
      and that Clutter 2.0 won't happen any time soon, if at all.
      Since having the development happen on a separate branch throws a lot of
      people into confusion, let's undo the clutter-1.99 → master merge, and
      move back the development of Clutter to the master branch.
      In order to do so, we need to do some surgery to the Git repository.
      First, we do a massive revert in a single commit of all that happened
      since the switch to 1.99 and the API version bump done with the
      89a2862b commit. The history is too long
      to be reverted commit by commit without being extremely messy.
  4. 17 Mar, 2014 1 commit
  5. 05 Apr, 2013 3 commits
  6. 04 Apr, 2013 1 commit
    • Emmanuele Bassi's avatar
      text: Add ::cursor-changed signal · 1724536c
      Emmanuele Bassi authored
      Since we are trying to eliminate the ClutterGeometry type, we should
      replace the only entry point still using it: the ::cursor-event signal
      of ClutterText.
      Instead of passing the cursor geometry, we should add an accessor
      The combination of signal and getter for the cursor geometry means that
      we can deprecate ClutterText::cursor-event, and mark it for removal in
      Clutter 2.0.
  7. 27 Feb, 2012 1 commit
  8. 06 Feb, 2012 1 commit
    • Emmanuele Bassi's avatar
      text: Add the coords_to_position() method · 7ba97745
      Emmanuele Bassi authored
      The reverse of position_to_coords().
      While providing documentation on how to implement it using the
      PangoLayout API, I realized that the verbosity of it all, plus the usage
      of the Pango API, was not worth it, and decided to expose the method we
      are using internally.
  9. 17 Jan, 2012 1 commit
  10. 13 Jun, 2011 1 commit
  11. 07 Jun, 2011 1 commit
    • Emmanuele Bassi's avatar
      Eliminate G_CONST_RETURN · 2b81d90d
      Emmanuele Bassi authored
      The G_CONST_RETURN define in GLib is, and has always been, a bit fuzzy.
      We always used it to conform to the platform, at least for public-facing
      At first I assumed it has something to do with brain-damaged compilers
      or with weird platforms where const was not really supported; sadly,
      it's something much, much worse: it's a define that can be toggled at
      compile-time to remove const from the signature of public API. This is a
      truly terrifying feature that I assume was added in the past century,
      and whose inception clearly had something to do with massive doses of
      absynthe and opium — because any other explanation would make the
      existence of such a feature even worse than assuming drugs had anything
      to do with it.
      Anyway, and pleasing the gods, this dubious feature is being
      removed/deprecated in GLib; see bug:
      Before deprecation, though, we should just remove its usage from the
      whole API. We should especially remove its usage from Cally's internals,
      since there it never made sense in the first place.
  12. 13 May, 2011 1 commit
  13. 03 Feb, 2010 1 commit
  14. 19 Oct, 2009 1 commit
    • Emmanuele Bassi's avatar
      docs: Documentation fixes · 23cd0b79
      Emmanuele Bassi authored
       • Fix list_stages() and peek_stages() documentation
       • Fix clutter_text_set_preedit_string() arguments in the header
         to match source and documentation
       • Add clutter_units_cm() to the private section for Units
       • Rename the LayoutManager section
       • Add FlowLayout:homogeneous accessors
  15. 16 Oct, 2009 1 commit
    • Emmanuele Bassi's avatar
      [text] Add pre-edit string to ClutterText · 28837283
      Emmanuele Bassi authored
      Input Methods require to be able to set a "pre-edit string", that is
      a string that it's just displayed into the Text actor without being
      committed to the actor's buffer. The string might require custom Pango
      attributes, and an update of the cursor position.
  16. 14 May, 2009 2 commits
  17. 06 May, 2009 2 commits
  18. 06 Apr, 2009 1 commit
  19. 26 Feb, 2009 1 commit
  20. 05 Feb, 2009 1 commit
    • Emmanuele Bassi's avatar
      [text] Rename :alignment to :line-alignment · 9cf02bfd
      Emmanuele Bassi authored
      The :alignment property is prone to generate confusion: developers
      will set it thinking that the contents of a ClutterText will
      automagically align themselves.
      Instead of using the generic term :alignment, and following the
      GTK+ convention, we should use a more specific term, conveying the
      actual effect of the property: alignment of the lines with respect
      to each other, and not to the overall allocated area.
      See bug 1428:
  21. 02 Feb, 2009 1 commit
    • Emmanuele Bassi's avatar
      [text] Merge the attributes with markup enabled · 488de99f
      Emmanuele Bassi authored
      ClutterText should merge the PangoAttributes set by using
      clutter_text_set_attributes() with the attributes generated by
      parsing Pango markup.
      For this to work we must parse the markup and merge the attributes
      we get out of pango_parse_markup() with the attributes set by
      the user.
      Setting the markup or the attributes on an editable text should
      not work for the time being.
  22. 07 Jan, 2009 2 commits
    • Emmanuele Bassi's avatar
      Re-align ClutterText header file · ad7d1b54
      Emmanuele Bassi authored
      The addition of the single line mode accessor methods caused the
      re-alignment of the entire file.
    • Emmanuele Bassi's avatar
      [text] Add single-line-mode to ClutterText · 43f82332
      Emmanuele Bassi authored
      Allow using ClutterText as a single line text field. This is useful for
      text fields that accept just a single line of contents by default, and
      respond to the Enter key press to execute some action.
      The :single-line-mode property enables this behaviour inside ClutterText
      by clipping and scrolling the contents of the PangoLayout if they do
      not fit the allocated width of the Text actor.
  23. 06 Jan, 2009 1 commit
    • Emmanuele Bassi's avatar
      [text] Coalesce text visibility and password character · 979b6794
      Emmanuele Bassi authored
      Using two properties to set a password entry can be construed as
      both cumbersome and a gtk-ism. And rightly so on both counts.
      The :text-visible property has also conflicting semantics with the
      :cursor-visible one: while the latter hides the cursor, the former
      changes the display of the contents of the Text actor. It is, thus,
      not a matter of "visibility" but of "rendering".
      Instead of setting the :text-visible and :invisible-char properties
      to have a password text field, the Text actor should just have a
      single :password-char property holding a Unicode character. If the
      value of the :password-char is non-zero, the Text actor will use the
      Unicode character to render the contents of the text entry.
      This commit removes the following methods:
      And the following properties:
      In favour of:
      Thus making obvious what use the property and accessor methods are
      for and simplifying the process of creating a simple password text
      field to:
        text = clutter_text_new ();
        clutter_text_set_password_char (CLUTTER_TEXT (text), '*');
  24. 16 Dec, 2008 3 commits
    • Emmanuele Bassi's avatar
      Add ClutterText::set_selection() · a3fbdb59
      Emmanuele Bassi authored
      The clutter_text_set_selection() function is a convenience
      method for setting the cursor position and the selection
      boundary to a given position in a single call, with sanity
      checks for the positions.
    • Emmanuele Bassi's avatar
      Add ClutterText::activate() · 93d96dca
      Emmanuele Bassi authored
      The clutter_text_activate() function will emit the ::activate
      signal if the :activatable property is set.
      This function is useful for subclasses or application code, for
      example if we are going to use ::captured-event or ::key-press-event
      signal handlers to intercept the Return key and emit the ::activate
      signal ourselves.
    • Emmanuele Bassi's avatar
      Add :cursor-size property to ClutterText · ea5a6abd
      Emmanuele Bassi authored
      We can control the width of the cursor when painting by using
      a simple property.
      The magic -1 number passed to the setter method will reset the
      cursor size to the default one of 2px.
      The getter method will return an unsigned integer with the
      current size.
  25. 15 Dec, 2008 2 commits
  26. 11 Dec, 2008 7 commits
    • Emmanuele Bassi's avatar
      Fix documentation issues · a50dfefb
      Emmanuele Bassi authored
      Provide a description for the ClutterText section, and fix some
      misnamed arguments inside the header file.
    • Emmanuele Bassi's avatar
      Use ClutterBindPool inside ClutterText · eae98800
      Emmanuele Bassi authored
      ClutterText should use the newly added ClutterBindingPool API to
      handle key events, instead of its homegrown code.
      This commit removes the action/mapping code and defers the entire
      key binding matching to a ClutterBindingPool created inside the
      Text class initialization function.
    • Emmanuele Bassi's avatar
      Add missing basic constructor · 74257dfa
      Emmanuele Bassi authored
      ClutterText should have an empty constructor, mostly for
      bindings to use, that just proxies call to g_object_new()
      without setting any property.
    • Emmanuele Bassi's avatar
      Add text-visibility accessors for ClutterText · d5df1beb
      Emmanuele Bassi authored
      A ClutterText can be put in "password mode" by setting the
      text as "invisible": every character inside the Text actor's
      contents will be replaced when building the Pango layout with
      a specific Unicode character.
      The Unicode character is set to '*' by default, but the user
      can be changed using the provided API.
    • Emmanuele Bassi's avatar
      Add Text::get_chars() method declaration · c5f51f70
      Emmanuele Bassi authored
      Add the declaration for a clutter_text_get_chars() function that
      returns a portion of the contents of a Text actor.
    • Emmanuele Bassi's avatar
      Merge Label and Entry API into ClutterText · 40fb7505
      Emmanuele Bassi authored
      ClutterText should expose both ClutterLabel and ClutterEntry
      functionality using an API that matches the one provided by
      those two classes.
    • Emmanuele Bassi's avatar
      Expose the Text accessors as public API · 437f9698
      Emmanuele Bassi authored
      Fix up the header to expose ClutterText accessors for the main
      properties, matching ClutterLabel.