Skip to content
Snippets Groups Projects
Commit 01cbca1a authored by Nico's avatar Nico
Browse files

Migrate to libhandy 1

As of August 7, [a first beta release is available](https://mamot.fr/@KekunPlazas/104648142113069390).

The code to build can now be downloaded from [gnome.org](https://download.gnome.org/sources/libhandy/0.90/).

A [migration guide](https://gnome.pages.gitlab.gnome.org/libhandy/hdy-migrating-0-0-to-1.html) is available, just as [packages for Debian](https://packages.debian.org/bullseye/libhandy-1-0).

Fixes #59.
parent e522414e
No related branches found
No related tags found
No related merge requests found
Pipeline #4725 failed
......@@ -2,14 +2,14 @@
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
image: debian:buster-backports
image: debian:bullseye
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt update && apt install --no-install-recommends -y gir1.2-gtk-3.0 python3-gi python3-pip python3-setuptools
- apt install --no-install-recommends -y -t buster-backports libhandy-0.0-dev
- apt install --no-install-recommends -y libhandy-1-dev
- pip3 install -r requirements-dev.txt
stages:
......
......@@ -50,6 +50,7 @@
{
"name" : "libhandy",
"buildsystem" : "meson",
"builddir" : "true",
"config-opts": [
"-Dtests=false",
"-Dexamples=false",
......@@ -59,9 +60,9 @@
],
"sources" : [
{
"type" : "git",
"tag" : "v0.0.13",
"url" : "https://source.puri.sm/Librem5/libhandy.git"
"type" : "archive",
"url" : "https://download.gnome.org/sources/libhandy/0.90/libhandy-0.90.0.tar.xz",
"sha256": "6ab0869a3aa483298ea20ec89d4c14c38ba4de416b33181d21e15a6039df5985"
}
]
},
......
......@@ -9,7 +9,7 @@
import gi
gi.require_version('Gdk', '3.0')
gi.require_version('Gtk', '3.0')
gi.require_version('Handy', '0.0')
gi.require_version('Handy', '1')
from gi.repository import Gdk, Gio, GLib, Gtk, Handy
from briar_wrapper.api import Api
......
......@@ -51,17 +51,17 @@ class PrivateChatContainer(Container):
self._messages_box.get_style_context().add_class("messages-history")
self._messages_box.show()
column = Handy.Column()
column.set_maximum_width(800)
column.set_linear_growth_width(600)
column.set_hexpand(True)
column.set_vexpand(True)
column.add(self._messages_box)
column.show()
clamp = Handy.Clamp.new()
clamp.set_maximum_size(800)
clamp.set_tightening_threshold(600)
clamp.set_hexpand(True)
clamp.set_vexpand(True)
clamp.add(self._messages_box)
clamp.show()
messages_column = self.builder.get_object("messages_column")
messages_column.get_style_context().add_class("messages-box")
messages_column.add(column)
messages_column.add(clamp)
messages_column.show()
messages_scroll = self.builder.get_object("messages_scroll")
......
......@@ -20,7 +20,6 @@
<property name="visible-child-name" bind-source="header_leaflet" bind-property="visible-child-name" bind-flags="bidirectional|sync-create"/>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hhomogeneous-folded">True</property>
<child>
<object class="GtkBox" id="sidebar_box">
<property name="width_request">200</property>
......@@ -219,8 +218,6 @@
<child>
<object class="HdyLeaflet" id="header_leaflet"> <!--message view-->
<property name="visible">True</property>
<property name="transition-type">slide</property>
<property name="hhomogeneous-folded">True</property>
<child>
<object class="GtkHeaderBar" id="left-header"> <!--left titlebar-->
<property name="visible">True</property>
......
......@@ -6,7 +6,7 @@ Build-Depends:
debhelper-compat (= 13),
gnome-pkg-tools,
gettext,
libhandy-0.0-dev,
libhandy-1-dev,
meson,
python3-all,
python3-gi
......@@ -21,7 +21,7 @@ Section: comm
Architecture: all
Depends:
${misc:Depends},
gir1.2-handy-0.0 (>= 0.0.13),
gir1.2-handy-1 (>= 0.90.0),
python3,
python3-briar-wrapper,
python3-gi
......
......@@ -10,5 +10,5 @@ project(
i18n = import('i18n')
dependency('libhandy-0.0')
dependency('libhandy-1')
subdir('briar-gtk')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment