Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eudaldgr committed Jul 27, 2020
1 parent dff9d27 commit 1a3e5f5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Layouts/HeaderBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class HeaderBar : Gtk.HeaderBar {
Popover popover = Popover.get_instance ();

public Gtk.Button info_button = new Gtk.Button.from_icon_name ("help-contents-symbolic");
public Granite.Widgets.ModeButton periodicView_mode = new Granite.Widgets.ModeButton ();
public ModeButton periodicView_mode = new Granite.Widgets.ModeButton ();

HeaderBar () {
this.get_style_context ().add_class ("flat");
Expand All @@ -25,7 +25,7 @@ public class HeaderBar : Gtk.HeaderBar {
return instance;
}

private void generatePeriodicViewMode () {
generatePeriodicViewMode () {
var label1 = new Gtk.Label (_("Main"));
var label2 = new Gtk.Label (_("Electronegativity"));

Expand All @@ -37,7 +37,7 @@ public class HeaderBar : Gtk.HeaderBar {
periodicView_mode.notify["selected"].connect (on_periodicView_mode_changed);
}

private void generateInfoButton () {
generateInfoButton () {
var pop = new Gtk.Popover (info_button);
pop.add (popover);

Expand All @@ -47,19 +47,19 @@ public class HeaderBar : Gtk.HeaderBar {
});
}

public void showPeriodicViewMode (bool answer) {
showPeriodicViewMode (bool answer) {
periodicView_mode.visible = answer;
}

public void showInfoButton (bool answer) {
showInfoButton (bool answer) {
info_button.visible = answer;
}

public void setSelectedPeriodicViewMode (int answer) {
setSelectedPeriodicViewMode (int answer) {
periodicView_mode.selected = answer;
}

private void on_periodicView_mode_changed () {
on_periodicView_mode_changed () {
switch (periodicView_mode.selected) {
case 1:
stack.getStack ().visible_child_name = "electronegativity_view";
Expand Down

0 comments on commit 1a3e5f5

Please sign in to comment.