Headerbar: simplify the naming scheme a bit.

The type of the widgets is already a Button so there's no need in
repeating that in the struct field.

Also remove some type annotations since the compiler can infer them
from the type of the struct fields.
This commit is contained in:
Jordan Petridis
2018-05-12 14:45:00 +03:00
parent e8ca2faaa7
commit be1a8df3ef
2 changed files with 29 additions and 29 deletions
+4 -4
View File
@@ -168,7 +168,7 @@ Tobias Bernard
</object>
</child>
<child>
<object class="GtkButton" id="back_button">
<object class="GtkButton" id="back">
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="no_show_all">True</property>
@@ -321,7 +321,7 @@ Tobias Bernard
</packing>
</child>
<child>
<object class="GtkModelButton" id="import_button">
<object class="GtkModelButton" id="import">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
@@ -335,7 +335,7 @@ Tobias Bernard
</packing>
</child>
<child>
<object class="GtkModelButton" id="export_button">
<object class="GtkModelButton" id="export">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
@@ -360,7 +360,7 @@ Tobias Bernard
</packing>
</child>
<child>
<object class="GtkModelButton" id="about_button">
<object class="GtkModelButton" id="about">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>