Commit af8a93dd authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

smaller details dialog

fixes #26
parent 0ada3935
Pipeline #195821 failed with stage
in 1 minute and 32 seconds
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="modal">True</property> <property name="modal">True</property>
<property name="window_position">center-on-parent</property> <property name="window_position">center-on-parent</property>
<property name="default_width">700</property> <property name="default_width">600</property>
<property name="default_height">550</property> <property name="default_height">480</property>
<property name="type_hint">dialog</property> <property name="type_hint">dialog</property>
<child> <child>
<object class="HdyDeck" id="deck"> <object class="HdyDeck" id="deck">
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkHeaderBar" id="headerbar"> <object class="HdyHeaderBar" id="headerbar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="show_close_button">True</property> <property name="show_close_button">True</property>
...@@ -330,7 +330,7 @@ ...@@ -330,7 +330,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkHeaderBar"> <object class="HdyHeaderBar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="title" translatable="yes">Include in an App</property> <property name="title" translatable="yes">Include in an App</property>
...@@ -1196,7 +1196,7 @@ ...@@ -1196,7 +1196,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkHeaderBar"> <object class="HdyHeaderBar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="title" translatable="yes">Use as a System Icon</property> <property name="title" translatable="yes">Use as a System Icon</property>
......
...@@ -6,7 +6,7 @@ use gio::prelude::*; ...@@ -6,7 +6,7 @@ use gio::prelude::*;
use gtk::prelude::*; use gtk::prelude::*;
use gtk::prelude::{SettingsExt, TextBufferExt}; use gtk::prelude::{SettingsExt, TextBufferExt};
use gtk::Inhibit; use gtk::Inhibit;
use libhandy::{ActionRowExt, DeckExt}; use libhandy::{ActionRowExt, DeckExt, HeaderBarExt};
use sourceview4::prelude::*; use sourceview4::prelude::*;
use std::path::Path; use std::path::Path;
...@@ -58,15 +58,13 @@ impl ExportDialog { ...@@ -58,15 +58,13 @@ impl ExportDialog {
get_widget!(self.builder, gtk::Label, tags_label); get_widget!(self.builder, gtk::Label, tags_label);
tags_label.set_text(&self.icon.tags.join(", ")); tags_label.set_text(&self.icon.tags.join(", "));
get_widget!(self.builder, gtk::HeaderBar, headerbar); get_widget!(self.builder, libhandy::HeaderBar, headerbar);
headerbar.set_title(Some(&self.icon.name.replace("-symbolic", ""))); headerbar.set_title(Some(&self.icon.name.replace("-symbolic", "")));
get_widget!(self.builder, gtk::Label, include_label); get_widget!(self.builder, gtk::Label, include_label);
include_label.connect_activate_link(clone!(@strong self.builder as builder => @default-return Inhibit(false), move |_, _| { include_label.connect_activate_link(clone!(@strong self.builder as builder => @default-return Inhibit(false), move |_, _| {
get_widget!(builder, gtk::Stack, headerbar_stack); get_widget!(builder, libhandy::Deck, deck);
get_widget!(builder, gtk::Stack, main_stack); deck.set_visible_child_name("in-app");
main_stack.set_visible_child_name("in-app");
headerbar_stack.set_visible_child_name("in-app");
Inhibit(false) Inhibit(false)
})); }));
......
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