Sha256: cb62b5654c0dce554d79e34d9322f40febf0147b73f8a3178d7d827e26e2715c

Contents?: true

Size: 1.16 KB

Versions: 166

Compression:

Stored size: 1.16 KB

Contents

# Copyright (C) 2012  Ruby-GNOME2 Project Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

module Clutter
  class Actor
    # TODO: use prepend after Ruby 1.9 support is dropped.
    alias_method :save_easing_state_without_block, :save_easing_state
    def save_easing_state
      if block_given?
        save_easing_state_without_block
        begin
          yield
        ensure
          restore_easing_state
        end
      else
        save_easing_state_without_block
      end
    end
  end
end

Version data entries

166 entries across 166 versions & 1 rubygems

Version Path
clutter-4.0.4 lib/clutter/actor.rb
clutter-4.0.3 lib/clutter/actor.rb
clutter-4.0.2 lib/clutter/actor.rb
clutter-4.0.1 lib/clutter/actor.rb
clutter-4.0.0 lib/clutter/actor.rb
clutter-3.5.1 lib/clutter/actor.rb
clutter-3.5.0 lib/clutter/actor.rb
clutter-3.4.9 lib/clutter/actor.rb
clutter-3.4.8 lib/clutter/actor.rb
clutter-3.4.7 lib/clutter/actor.rb
clutter-3.4.6 lib/clutter/actor.rb
clutter-3.4.5 lib/clutter/actor.rb
clutter-3.4.4 lib/clutter/actor.rb
clutter-3.4.3 lib/clutter/actor.rb
clutter-3.4.2 lib/clutter/actor.rb
clutter-3.4.1 lib/clutter/actor.rb
clutter-3.4.0 lib/clutter/actor.rb
clutter-3.3.9 lib/clutter/actor.rb
clutter-3.3.8 lib/clutter/actor.rb
clutter-3.3.7 lib/clutter/actor.rb