Sha256: 392b2f5eb43018845256e6b98cfcc30f5cfb8adb86a73ed6a83e1b708969b90d

Contents?: true

Size: 608 Bytes

Versions: 6

Compression:

Stored size: 608 Bytes

Contents

# frozen_string_literal: true

Gtk.load_class :Menu
module Gtk
  # Overrides for GtkMenu
  class Menu
    unless method_defined? :popup
      # Smells of :reek:LongParameterList: due to the defined GtkMenu interface.
      # rubocop:disable Metrics/ParameterLists
      def popup(parent_menu_shell, parent_menu_item, func, data, button, activate_time)
        popup_for_device(nil,
                         parent_menu_shell, parent_menu_item, func, data,
                         nil,
                         button, activate_time)
      end
      # rubocop:enable Metrics/ParameterLists
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.14.1 lib/gir_ffi-gtk/menu.rb
gir_ffi-gtk-0.14.0 lib/gir_ffi-gtk/menu.rb
gir_ffi-gtk-0.13.1 lib/gir_ffi-gtk/menu.rb
gir_ffi-gtk-0.13.0 lib/gir_ffi-gtk/menu.rb
gir_ffi-gtk-0.12.1 lib/gir_ffi-gtk/menu.rb
gir_ffi-gtk-0.12.0 lib/gir_ffi-gtk/menu.rb