Skip to content

Commit

Permalink
Autocorrect Style/SuperWithArgsParentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Dec 2, 2023
1 parent b580d29 commit b270b7b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/gir_ffi-gtk/action.rb
Expand Up @@ -4,7 +4,7 @@ module GirFFIGtk
# Overrides for GtkAction
module ActionOverrides
def create_icon(icon_size)
super Gtk::IconSize.to_int(icon_size)
super(Gtk::IconSize.to_int(icon_size))
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/gir_ffi-gtk/gtk3/button.rb
Expand Up @@ -4,7 +4,7 @@ module GirFFIGtk
# Overrides for GtkAction class methods
module ButtonClassOverrides
def new_from_icon_name(icon_name, size)
super icon_name, Gtk::IconSize.to_int(size)
super(icon_name, Gtk::IconSize.to_int(size))
end
end
end
Expand Down
6 changes: 3 additions & 3 deletions lib/gir_ffi-gtk/image.rb
Expand Up @@ -4,18 +4,18 @@ module GirFFIGtk
# Overrides for GtkImage methods
module ImageOverrides
def set_from_gicon(icon, size)
super icon, Gtk::IconSize.to_int(size)
super(icon, Gtk::IconSize.to_int(size))
end
end

# Overrides for GtkImage class methods
module ImageClassOverrides
def new_from_icon_name(icon_name, size)
super icon_name, Gtk::IconSize.to_int(size)
super(icon_name, Gtk::IconSize.to_int(size))
end

def new_from_gicon(icon, size)
super icon, Gtk::IconSize.to_int(size)
super(icon, Gtk::IconSize.to_int(size))
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gir_ffi-gtk/widget.rb
Expand Up @@ -4,15 +4,15 @@ module GirFFIGtk
# Overrides for GtkWidget methods
module WidgetOverrides
def add_events(events)
super Gdk::EventMask.to_int events
super(Gdk::EventMask.to_int events)
end

def get_events
Gdk::EventMask.from_native super
end

def set_events(events)
super Gdk::EventMask.to_int events
super(Gdk::EventMask.to_int events)
end
end
end
Expand Down

0 comments on commit b270b7b

Please sign in to comment.