1. 11 Jul, 2018 1 commit
  2. 06 Jul, 2018 1 commit
    • Ell's avatar
      app: log actions upon activation before emitting "selected" signal · 114d4951
      Ell authored
      In GimpAction, instead of connecting the action-history log
      function to the action's "activate" signal as a user-provided
      handler, call it directly from the default handler.
      
      In subclasses of GimpAction, chain to the parent's activate()
      function before emitting the "selected" signal, so that we always
      log the action in the history before responding to it.
      
      This allows us to avoid the hack in commit
      6544ce43.
      114d4951
  3. 17 Feb, 2018 1 commit
    • Ell's avatar
      app: add gimp_action_history_is_blacklisted_action() · 2816695e
      Ell authored
      ... and rename gimp_action_history_excluded_action() to
      gimp_action_history_is_excluded_action().
      
      is_blacklisted_action() determines whether an action should be
      excluded from *both* the history and the search results, while
      is_excluded_action() determines if an action should be excluded
      only from the history.  This eliminates some redundancy across
      gimpaction-history and action-search-dialog.
      2816695e
  4. 16 Sep, 2014 1 commit
    • Jehan's avatar
      app: update action search to use glib API. · b9a91696
      Jehan authored
      I now normalize with g_str_tokenize_and_fold() which uses standard
      Unicode normalization.
      I don't use g_str_match_string() directly though, because I want to
      run additional checks to order the results by relevance. For instance
      I still want actions whose labels starts with the search string to be
      at the top, and results with same order as search token before those
      with a different order. Then results with match in the tooltip. Finally
      I also returns results with partial match in the label, and the rest in
      the tooltip, though at the bottom of the list.
      Other than that, this returns the same results as g_str_match_string()
      with a similar algorithm. In particular now we only match the start of
      tokens (a substring in the middle of a token won't match anymore).
      I kept the small 2-character trick matching the first letters of the
      first 2 words of the label, but I got rid of the fuzzy search (that none
      really found ever relevant anyway).
      b9a91696
  5. 29 Jul, 2014 1 commit
  6. 18 Feb, 2014 2 commits
    • Michael Natterer's avatar
      app: more action search cleanup · 00348ffc
      Michael Natterer authored
      - standard copyright headers
      - use gtk_action_is_sensitive() not get_sensitive()
      - formatting
      00348ffc
    • Jehan's avatar
      Bug 708174 - Improve the original search dialog patch. · 5903e53d
      Jehan authored
      Fix various bugs, improve code design and efficiency, change feature
      name, update the feature up to our standards (now uses GIMP preferences,
      session management, less overwhelming settings...).
      Also now action history is tightly tied to GimpAction and logs all
      action activation (however it activates, and the show_unavailable
      parameter also applies to history).
      Search algorithm greatly improved with basic tokenization, better
      ordering, filtering, etc.
      5903e53d