Commit 58d5dbe1 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Merge branch 'polish' into 'master'

Polish export dialog a bit

See merge request !13
parents 8d90d86b c71034ff
Pipeline #200833 passed with stage
in 19 minutes and 45 seconds
......@@ -6,3 +6,6 @@
padding: 4px 8px;
}
stackswitcher.narrow button {
min-width: 0;
}
This diff is collapsed.
......@@ -64,7 +64,9 @@ impl ExportDialog {
get_widget!(self.builder, gtk::Label, include_label);
include_label.connect_activate_link(clone!(@strong self.builder as builder => @default-return Inhibit(false), move |_, _| {
get_widget!(builder, libhandy::Deck, deck);
deck.set_visible_child_name("in-app");
get_widget!(builder, gtk::Stack, stack);
stack.set_visible_child_name("in-app");
deck.navigate(libhandy::NavigationDirection::Forward);
Inhibit(false)
}));
......@@ -138,7 +140,9 @@ impl ExportDialog {
get_widget!(self.builder, libhandy::ActionRow, in_app_row);
in_app_row.connect_activated(clone!(@strong self.builder as builder => move |_| {
get_widget!(builder, libhandy::Deck, deck);
deck.set_visible_child_name("in-app");
get_widget!(builder, gtk::Stack, stack);
stack.set_visible_child_name("in-app");
deck.navigate(libhandy::NavigationDirection::Forward);
}));
// Switch the view to Icon details
action!(
......@@ -146,14 +150,16 @@ impl ExportDialog {
"details",
clone!(@strong self.builder as builder => move |_, _| {
get_widget!(builder, libhandy::Deck, deck);
deck.set_visible_child_name("details");
deck.navigate(libhandy::NavigationDirection::Back);
})
);
// Switch view to in-platform related stuff
get_widget!(self.builder, libhandy::ActionRow, as_system_row);
as_system_row.connect_activated(clone!(@strong self.builder as builder => move |_| {
get_widget!(builder, libhandy::Deck, deck);
deck.set_visible_child_name("in-platform");
get_widget!(builder, gtk::Stack, stack);
stack.set_visible_child_name("in-platform");
deck.navigate(libhandy::NavigationDirection::Forward);
}));
// Save GResource sample
action!(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment