Commit f68a9560 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui
Browse files

Flatpak: use libhandy from master

parent 6e00e128
......@@ -89,8 +89,7 @@
"sources": [
{
"type": "git",
"url": "https://source.puri.sm/Librem5/libhandy.git",
"tag": "v0.0.11"
"url": "https://source.puri.sm/Librem5/libhandy.git"
}
]
},
......
......@@ -119,6 +119,8 @@ public class Application : Gtk.Application {
Utils.load_main_css ();
set_resource_base_path("/org/gnome/clocks/");
var theme = Gtk.IconTheme.get_default ();
theme.add_resource_path("/org/gnome/clocks/icons");
......
......@@ -98,13 +98,6 @@ public class Window : Gtk.ApplicationWindow {
update_header_bar ();
});
this.size_allocate.connect((widget, allocation) => {
switcher_bar.set_reveal(allocation.width < 500);
squeezer.set_child_enabled(title_wide_switcher, allocation.width > 800);
squeezer.set_child_enabled(title_narrow_switcher, allocation.width > 500);
squeezer.set_child_enabled(title_text, allocation.width <= 500);
});
var header_bar_id = header_bar.notify["mode"].connect (() => {
update_header_bar ();
});
......@@ -173,6 +166,14 @@ public class Window : Gtk.ApplicationWindow {
}
}
public override void size_allocate (Gtk.Allocation allocation) {
base.size_allocate (allocation);
switcher_bar.set_reveal (allocation.width <= 500);
squeezer.set_child_enabled (title_wide_switcher, allocation.width > 800);
squeezer.set_child_enabled (title_narrow_switcher, allocation.width > 500);
squeezer.set_child_enabled (title_text, allocation.width <= 500);
}
private void on_show_primary_menu_activate (SimpleAction action) {
var state = action.get_state ().get_boolean ();
action.set_state (new Variant.boolean (!state));
......
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