Headerbar: Add import and export items in the hamburger menu.
I strongly believe that these do not belong there and should be moved elsewhere. But for the time being and prototyping they are "good enough". People most of the time tend to import from an OPML file only on the first use of the App. Then the functionality sits there and is never used again. That's why I think import should be moved into a preferences dialogs and have the empty view suggest the action. Exporting OPML files is also not that common, I also believe this should be moved into a preference dialog instead of the hamburger menu.
This commit is contained in:
parent
83f9284b05
commit
e8ca2faaa7
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.21.0
|
||||
<!-- Generated with glade 3.22.0
|
||||
|
||||
Copyright (C) 2017 - 2018
|
||||
|
||||
@ -320,6 +320,34 @@ Tobias Bernard
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkModelButton" id="import_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
<property name="text" translatable="yes">Import Shows</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkModelButton" id="export_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
<property name="text" translatable="yes">Export Shows</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">3</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparator">
|
||||
<property name="visible">True</property>
|
||||
@ -328,7 +356,7 @@ Tobias Bernard
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">2</property>
|
||||
<property name="position">4</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
|
||||
@ -23,6 +23,8 @@ pub struct Header {
|
||||
back_button: gtk::Button,
|
||||
show_title: gtk::Label,
|
||||
about_button: gtk::ModelButton,
|
||||
import_button: gtk::ModelButton,
|
||||
export_button: gtk::ModelButton,
|
||||
update_button: gtk::ModelButton,
|
||||
update_box: gtk::Box,
|
||||
update_label: gtk::Label,
|
||||
@ -38,6 +40,8 @@ impl Default for Header {
|
||||
let switch: gtk::StackSwitcher = builder.get_object("switch").unwrap();
|
||||
let back_button: gtk::Button = builder.get_object("back_button").unwrap();
|
||||
let show_title: gtk::Label = builder.get_object("show_title").unwrap();
|
||||
let import_button: gtk::ModelButton = builder.get_object("import_button").unwrap();
|
||||
let export_button: gtk::ModelButton = builder.get_object("export_button").unwrap();
|
||||
let update_button: gtk::ModelButton = builder.get_object("update_button").unwrap();
|
||||
let update_box: gtk::Box = builder.get_object("update_notification").unwrap();
|
||||
let update_label: gtk::Label = builder.get_object("update_label").unwrap();
|
||||
@ -51,6 +55,8 @@ impl Default for Header {
|
||||
back_button,
|
||||
show_title,
|
||||
about_button,
|
||||
import_button,
|
||||
export_button,
|
||||
update_button,
|
||||
update_box,
|
||||
update_label,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user