1. 09 Apr, 2018 3 commits
  2. 29 May, 2017 1 commit
  3. 22 Nov, 2016 1 commit
  4. 02 Nov, 2015 1 commit
  5. 05 Feb, 2015 1 commit
  6. 26 Jan, 2015 1 commit
  7. 15 Feb, 2014 1 commit
    • Matthias Clasen's avatar
      docs: let go of * · bc6ee788
      Matthias Clasen authored
      Since we are no longer using sgml mode, using /* */ to
      escape block comments inside examples does not work anymore.
      Switch to using line comments with //
      bc6ee788
  8. 01 Feb, 2014 2 commits
  9. 31 Jan, 2014 1 commit
  10. 18 Jan, 2014 2 commits
    • Allison Karlitskaya's avatar
      GSimpleAction: fix mistake in last commit · 9e81c07a
      Allison Karlitskaya authored
      Some bad copy-paste happening here...
      9e81c07a
    • Allison Karlitskaya's avatar
      GSimpleAction: add default activate handler · 1ec71144
      Allison Karlitskaya authored
      If the action is stateful and the user doesn't have their own activate handler
      then do some reasonable things for ourselves.
      
      After a lot of experience using stateful GSimpleAction it turns out that
      people almost always end up using it in the same ways:
      
      A boolean-typed stateful action with no parameter is most likely going
      to want to be toggled.  Any other type of action that has the parameter
      type equal to the state type probably intends for activation to
      represent a request to change the state.
      
      This patch implements those two cases.  This will let people stop
      writing their own trivial handlers over and over.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=722503
      1ec71144
  11. 08 Jan, 2014 1 commit
  12. 29 Oct, 2013 1 commit
  13. 13 May, 2013 1 commit
  14. 21 Dec, 2011 2 commits
  15. 08 Dec, 2011 2 commits
  16. 27 Nov, 2011 1 commit
  17. 17 Oct, 2011 1 commit
  18. 08 Sep, 2011 1 commit
  19. 29 Jun, 2011 8 commits
    • Emmanuele Bassi's avatar
      gio: Some more build fixes · 847a8eb9
      Emmanuele Bassi authored
      847a8eb9
    • Emmanuele Bassi's avatar
      Fix build · 87a542bc
      Emmanuele Bassi authored
      The g_return_val_if_fail() macro takes a return value.
      87a542bc
    • Allison Karlitskaya's avatar
      b73e53f5
    • Allison Karlitskaya's avatar
      GAction: make GObject properties read-only · bde41dac
      Allison Karlitskaya authored
      GAction is a read-only interface (as is visible by the lack of _set() functions
      on its API).  The properties on the interface currently force implementors to
      support writing of the properties at construct time, however.
      
      Lift that restriction.
      
      Take advantage of this from GSimpleAction by nuking the set_property
      function and setting the fields directly in the constructor.
      bde41dac
    • Allison Karlitskaya's avatar
      Add example for 'change-state' signal · 535dcf4f
      Allison Karlitskaya authored
      Pulled from the testcase.
      535dcf4f
    • Allison Karlitskaya's avatar
      Add 'change-state' signal to GSimpleAction · 9a23ef6c
      Allison Karlitskaya authored
      If connected, allows the user to control the result of
      g_action_change_state().
      9a23ef6c
    • Allison Karlitskaya's avatar
      allow NULL state in g_simple_action_new_stateful · 695a9a79
      Allison Karlitskaya authored
      as an undocumented feature
      695a9a79
    • Allison Karlitskaya's avatar
      Make 4 incompatible changes to the GAction API · 5ff65d86
      Allison Karlitskaya authored
      This commit represents an API break to GAction in the following ways:
      
        - the 'set_state' entry in the GActionInterface vtable has been
          renamed to 'change_state'.  The number and order of vtable items has
          not otherwise changed.
      
        - g_action_set_state() has been renamed to g_action_change_state() to
          match the updated vtable entry.
      
        - the "state" property of the GAction interface has been changed to
          read-only to reflect the fact that g_action_set_state() no longer
          exists.
      
        - GSimpleActionClass has been hidden.  GSimpleAction can no longer be
          subclassed.
      
      >> Rationale
      
      g_action_set_state() has never been a true setter in the sense that
      calling it will update the value of the "state" property.  It has always
      been closer to "request 'state' to be changed to this value" with
      semantics defined by the implementor of the interface.  This is why the
      equivalent method in GActionGroup had its name changed from 'set' to
      'change'.  This change makes the two interfaces more consistent and
      removes any implication about the effect that calling set_state() should
      have on the 'state' property.
      
      >> Impact
      
      This incompatible API break was undertaken only because I strongly
      suspect that it will go entirely unnoticed.  If the break actually
      affects anybody, then we will accommodate them (possibly going as far as
      to revert this commit entirely).
      
      The virtual table change only impacts implementors of GAction.  I
      strongly suspect that this is nobody (except for GSimpleAction).
      
      The hiding of GSimpleActionClass only impacts impacts subclasses of
      GSimpleAction.  I strongly suspect that none of these exist.
      
      The changing of the property to be read-only only affects people who
      were trying to change the state by using GObject properties.  I strongly
      suspect that this is nobody at all.
      
      The removal of the g_action_set_state() call is the most dangerous, but
      I still suspect that it will impact nobody outside of GLib.  If anybody
      is impacted by this change then, at their request, I will reintroduce
      the API as a deprecated alias for g_action_change_state().
      5ff65d86
  20. 24 Jun, 2011 1 commit
  21. 27 Apr, 2011 1 commit
  22. 29 Nov, 2010 1 commit
  23. 23 Oct, 2010 1 commit
  24. 18 Oct, 2010 1 commit
  25. 30 Aug, 2010 1 commit