Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Port to GTK4 #310

Merged
merged 52 commits into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
77a37d4
Let's do this
Apr 6, 2021
42eafdf
Almost made it compile
Apr 6, 2021
8fb55a8
Now it compiles
Apr 7, 2021
0618b18
Fix base.ui
Apr 8, 2021
e3f4c8a
Fix TabbedBase
Apr 8, 2021
04a1033
Add sidebar view
Apr 9, 2021
138c6b8
Clean ui files
Apr 9, 2021
2e80689
Sidebar: add account switching mode
Apr 9, 2021
514ee97
Populate sidebar with account actions
Apr 11, 2021
3392547
Fix preferences
Apr 11, 2021
d6bdbd7
Fix view title
Apr 12, 2021
48c1d01
Fix thread view
Apr 13, 2021
d17bd2d
Refactor Streams. Again.
Apr 14, 2021
192b32d
Initial Profile view redesign
Apr 17, 2021
161a5c5
New cache system idea
Apr 20, 2021
808fb95
Save window size
Apr 20, 2021
b80a4ec
Account switching
Apr 21, 2021
b7f5559
Fix NewAccount dialog
Apr 21, 2021
b91cb3d
Sidebar: implement account manager mode
Apr 22, 2021
e501716
Add sidebar toggle button
May 15, 2021
4f51c19
Change some timeline icons
May 15, 2021
3d58e44
Rework image cache
May 16, 2021
5c1a9fe
Leaks. Leaks everywhere.
May 16, 2021
5d49e98
Fix Adw.Avatars not being destroyed. Kinda.
May 18, 2021
59c6013
Fix some leaks for GTK 4.3
Jun 15, 2021
a2d5cbf
Doing something controversial
Jun 18, 2021
cdfe8da
Clean up
Jun 18, 2021
6e10056
Reimplement status actions
Jul 2, 2021
1d25465
Cosmetic tweaks
Jul 5, 2021
9e13b5f
Add desktop notifications
Jul 10, 2021
c454e9c
Profile View: move note field up
Jul 10, 2021
04a062f
Work on notifications
Jul 11, 2021
190eb49
Notifications...
Jul 12, 2021
4344d43
Stuff
Jul 14, 2021
12838b3
Add Background widget
Jul 14, 2021
e7a8d54
Remove old Compose dialog
Jul 16, 2021
2b07c00
Add cw field to Composer
Jul 16, 2021
22f42de
Figure out DropDowns
Jul 16, 2021
960da9f
Make composer actually work
Jul 17, 2021
041fcba
Fix symbolic icon recoloring
Jul 17, 2021
81eb396
Initial attachment box
Jul 18, 2021
f059607
Attachment styling
Jul 19, 2021
b2f589a
Open attachments on click
Jul 19, 2021
414825f
Rename Desktop to Host
Jul 19, 2021
e2c6088
Display attachment descriptions
Jul 19, 2021
01f8a82
ImageCache: Store paintables instead of pixbufs
Jul 19, 2021
1709d41
Cosmetics
Jul 19, 2021
eae389f
Composer: Support replies
Jul 23, 2021
179e721
Remove NYI stuff
Jul 23, 2021
f8458ba
Make sidebar useful
Jul 23, 2021
1b60716
Lists are broken
Jul 23, 2021
bb7c1a8
Bump version
Jul 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix some leaks for GTK 4.3
  • Loading branch information
User committed Jun 15, 2021
commit 59c6013ca95d4ae0ad8243265e0bbe66257c5215
Empty file modified .buildconfig
100644 → 100755
Empty file.
Empty file modified .github/FUNDING.yml
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/bug-report.md
100644 → 100755
Empty file.
Empty file modified .github/workflows/build.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified com.github.bleakgrey.tootle.json
100644 → 100755
Empty file.
13 changes: 12 additions & 1 deletion data/app.css
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,20 @@
margin-bottom: 32px;
}

.header-image {



/*
Profile
*/

.ttl-profile-cover .header-image {
background:grey;
}
.ttl-profile-cover avatar {
border: 6px solid @theme_base_color;
background: @theme_base_color;
}
.large .header-image {
border-radius:6px 6px 0 0;
}
Expand Down
Empty file modified data/com.github.bleakgrey.tootle.appdata.xml.in
100644 → 100755
Empty file.
Empty file modified data/com.github.bleakgrey.tootle.desktop.in
100644 → 100755
Empty file.
Empty file modified data/com.github.bleakgrey.tootle.gschema.xml
100644 → 100755
Empty file.
Empty file modified data/gresource.xml
100644 → 100755
Empty file.
Empty file modified data/icons/color-nightly.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified data/icons/color.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified data/icons/globe-symbolic.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified data/icons/hashtag-symbolic.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified data/icons/mention-symbolic.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified data/icons/symbolic.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified data/meson.build
100644 → 100755
Empty file.
Empty file modified data/screenshot1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified data/screenshot2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified data/screenshot3.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified data/screenshot4.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified data/ui/dialogs/compose.ui
100644 → 100755
Empty file.
Empty file modified data/ui/dialogs/list_editor.ui
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion data/ui/dialogs/main.ui
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
<!-- </child> -->
<child type="content">
<object class="AdwLeaflet" id="leaflet">
<property name="can_swipe_back">True</property>
<property name="can-swipe-back">1</property>
<property name="can-unfold">0</property>
<property name="hhomogeneous-folded">0</property>
<property name="hhomogeneous-unfolded">1</property>
<signal name="notify::child-transition-running" handler="on_child_transition"/>
Expand Down
Empty file modified data/ui/dialogs/new_account.ui
100644 → 100755
Empty file.
Empty file modified data/ui/dialogs/preferences.ui
100644 → 100755
Empty file.
Empty file modified data/ui/menus.ui
100644 → 100755
Empty file.
Empty file modified data/ui/views/base.ui
100644 → 100755
Empty file.
Empty file modified data/ui/views/new_account.ui
100644 → 100755
Empty file.
48 changes: 14 additions & 34 deletions data/ui/views/profile_header.ui
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,64 +15,41 @@
<child>

<object class="GtkListBoxRow">
<property name="can-target">0</property>
<child>

<object class="GtkGrid">
<property name="row_homogeneous">0</property>
<child>
<object class="GtkImage" id="background">
<object class="GtkPicture" id="background">
<property name="hexpand">1</property>
<property name="icon_name">gtk-missing-image</property>
<property name="keep-aspect-ratio">0</property>
<property name="height-request">200</property>
<property name="margin-bottom">18</property>
<property name="margin-bottom">50</property>
<style>
<class name="header-image"/>
</style>
<layout>
<property name="column">0</property>
<property name="row">0</property>
<property name="column-span">2</property>
<property name="row-span">3</property>
<property name="row">0</property>
<property name="row-span">1</property>
</layout>
</object>
</child>
<child>
<object class="TootleWidgetsAvatar" id="avatar">
<property name="halign">start</property>
<property name="valign">center</property>
<property name="valign">end</property>
<property name="margin-start">12</property>
<property name="size">90</property>
<property name="sensitive">0</property>
<property name="margin-end">12</property>
<property name="size">100</property>
<layout>
<property name="column">0</property>
<property name="row">2</property>
<property name="row-span">2</property>
<property name="row">0</property>
<property name="row-span">1</property>
</layout>
</object>
</child>
<!-- <child> -->
<!-- <object class="GtkBox" id="actions"> -->
<!-- <property name="halign">end</property> -->
<!-- <property name="margin-end">12</property> -->
<!-- <property name="margin_top">12</property> -->
<!-- <property name="margin_bottom">12</property> -->
<!-- <property name="hexpand">1</property> -->
<!-- <child> -->
<!-- <placeholder/> -->
<!-- </child> -->
<!-- <child> -->
<!-- <placeholder/> -->
<!-- </child> -->
<!-- <child> -->
<!-- <placeholder/> -->
<!-- </child> -->
<!-- <layout> -->
<!-- <property name="column">1</property> -->
<!-- <property name="row">3</property> -->
<!-- </layout> -->
<!-- </object> -->
<!-- </child> -->
<child>
<object class="GtkBox">
<property name="margin_top">12</property>
Expand Down Expand Up @@ -137,7 +114,6 @@

<child>
<object class="GtkListBoxRow">
<property name="can-target">0</property>
<child>
<object class="TootleWidgetsMarkupView" id="note">
<property name="margin-top">12</property>
Expand All @@ -153,5 +129,9 @@
</object>
</child>

<style>
<class name="ttl-profile-cover"/>
</style>

</template>
</interface>
Empty file modified data/ui/views/sidebar/account.ui
100644 → 100755
Empty file.
Empty file modified data/ui/views/sidebar/item.ui
100644 → 100755
Empty file.
Empty file modified data/ui/views/sidebar/view.ui
100644 → 100755
Empty file.
Empty file modified data/ui/widgets/accounts_button_item.ui
100644 → 100755
Empty file.
Empty file modified data/ui/widgets/adaptive_button.ui
100644 → 100755
Empty file.
Empty file modified data/ui/widgets/attachment_slot.ui
100644 → 100755
Empty file.
Empty file modified data/ui/widgets/compose_attachment.ui
100644 → 100755
Empty file.
Empty file modified data/ui/widgets/list_editor_item.ui
100644 → 100755
Empty file.
Empty file modified data/ui/widgets/list_item.ui
100644 → 100755
Empty file.
Empty file modified data/ui/widgets/profile_field_row.ui
100644 → 100755
Empty file.
104 changes: 52 additions & 52 deletions data/ui/widgets/status.ui
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -205,59 +205,59 @@
</child>
<child>
<object class="GtkBox" id="actions">
<property name="can_focus">0</property>
<property name="homogeneous">1</property>
<property name="spacing">8</property>
<child>
<object class="GtkButton" id="reply_button">
<property name="hexpand">1</property>
<property name="icon_name">mail-reply-sender-symbolic</property>
<style>
<class name="flat"/>
</style>
</object>
</child>
<child>
<object class="GtkToggleButton" id="reblog_button">
<property name="hexpand">1</property>
<property name="icon_name">reblog_icon</property>
<style>
<class name="flat"/>
</style>
</object>
</child>
<child>
<object class="GtkToggleButton" id="favorite_button">
<property name="hexpand">1</property>
<property name="icon_name">image2</property>
<style>
<class name="flat"/>
</style>
</object>
</child>
<child>
<object class="GtkToggleButton" id="bookmark_button">
<property name="hexpand">1</property>
<property name="icon_name">image1</property>
<style>
<class name="flat"/>
</style>
</object>
</child>
<child>
<object class="GtkButton" id="menu_button">
<property name="hexpand">1</property>
<property name="receives_default">1</property>
<child>
<object class="GtkImage">
<property name="can_focus">0</property>
<property name="icon_name">view-more-symbolic</property>
</object>
</child>
<style>
<class name="flat"/>
</style>
</object>
</child>
<!-- <child> -->
<!-- <object class="GtkButton" id="reply_button"> -->
<!-- <property name="hexpand">1</property> -->
<!-- <property name="icon_name">mail-reply-sender-symbolic</property> -->
<!-- <style> -->
<!-- <class name="flat"/> -->
<!-- </style> -->
<!-- </object> -->
<!-- </child> -->
<!-- <child> -->
<!-- <object class="GtkToggleButton" id="reblog_button"> -->
<!-- <property name="hexpand">1</property> -->
<!-- <property name="icon_name">reblog_icon</property> -->
<!-- <style> -->
<!-- <class name="flat"/> -->
<!-- </style> -->
<!-- </object> -->
<!-- </child> -->
<!-- <child> -->
<!-- <object class="GtkToggleButton" id="favorite_button"> -->
<!-- <property name="hexpand">1</property> -->
<!-- <property name="icon_name">image2</property> -->
<!-- <style> -->
<!-- <class name="flat"/> -->
<!-- </style> -->
<!-- </object> -->
<!-- </child> -->
<!-- <child> -->
<!-- <object class="GtkToggleButton" id="bookmark_button"> -->
<!-- <property name="hexpand">1</property> -->
<!-- <property name="icon_name">image1</property> -->
<!-- <style> -->
<!-- <class name="flat"/> -->
<!-- </style> -->
<!-- </object> -->
<!-- </child> -->
<!-- <child> -->
<!-- <object class="GtkButton" id="menu_button"> -->
<!-- <property name="hexpand">1</property> -->
<!-- <property name="receives_default">1</property> -->
<!-- <child> -->
<!-- <object class="GtkImage"> -->
<!-- <property name="can_focus">0</property> -->
<!-- <property name="icon_name">view-more-symbolic</property> -->
<!-- </object> -->
<!-- </child> -->
<!-- <style> -->
<!-- <class name="flat"/> -->
<!-- </style> -->
<!-- </object> -->
<!-- </child> -->
</object>
</child>
<layout>
Expand Down
Empty file modified data/ui/widgets/timeline_footer.ui
100644 → 100755
Empty file.
Empty file modified data/ui/widgets/timeline_menu.ui
100644 → 100755
Empty file.
5 changes: 2 additions & 3 deletions meson.build
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ asresources = gnome.compile_resources(
c_name: 'as'
)

libgtk_dep = dependency('gtk4', version: '>=4.0.0', required: true)
libadwaita_dep = dependency('libadwaita-1')
libgtk_dep = dependency('gtk4', version: '>=4.3.0', required: true)
libadwaita_dep = dependency('libadwaita-1', version: '>=1.0.0', required: true)

sources = files(
'src/Application.vala',
Expand Down Expand Up @@ -62,7 +62,6 @@ sources = files(
'src/API/SearchResults.vala',
'src/API/Entity.vala',
'src/Widgets/Widgetizable.vala',
'src/Widgets/Disposable.vala',
'src/Widgets/Avatar.vala',
'src/Widgets/RichLabel.vala',
'src/Widgets/Status.vala',
Expand Down
Empty file modified po/LINGUAS
100644 → 100755
Empty file.
Empty file modified po/POTFILES
100644 → 100755
Empty file.
Empty file modified po/com.github.bleakgrey.tootle.pot
100644 → 100755
Empty file.
Empty file modified po/de_DE.po
100644 → 100755
Empty file.
Empty file modified po/es.po
100644 → 100755
Empty file.
Empty file modified po/meson.build
100644 → 100755
Empty file.
Empty file modified po/nb-NO.po
100644 → 100755
Empty file.
Empty file modified po/ru_RU.po
100644 → 100755
Empty file.
Empty file modified src/.editorconfig
100644 → 100755
Empty file.
Empty file modified src/API/Account.vala
100644 → 100755
Empty file.
Empty file modified src/API/AccountField.vala
100644 → 100755
Empty file.
Empty file modified src/API/Attachment.vala
100644 → 100755
Empty file.
Empty file modified src/API/Conversation.vala
100644 → 100755
Empty file.
Empty file modified src/API/Entity.vala
100644 → 100755
Empty file.
Empty file modified src/API/List.vala
100644 → 100755
Empty file.
Empty file modified src/API/Mention.vala
100644 → 100755
Empty file.
Empty file modified src/API/Notification.vala
100644 → 100755
Empty file.
Empty file modified src/API/NotificationType.vala
100644 → 100755
Empty file.
Empty file modified src/API/Relationship.vala
100644 → 100755
Empty file.
Empty file modified src/API/SearchResults.vala
100644 → 100755
Empty file.
Empty file modified src/API/Status.vala
100644 → 100755
Empty file.
Empty file modified src/API/Tag.vala
100644 → 100755
Empty file.
Empty file modified src/API/Visibility.vala
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion src/Application.vala
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ namespace Tootle {
website = Build.SUPPORT_WEBSITE,
website_label = _("Report an issue"),
license_type = License.GPL_3_0_ONLY,
copyright = Build.COPYRIGHT
copyright = Build.COPYRIGHT,
system_information = Build.SYSTEM_INFO
};

// For some obscure reason, const arrays produce duplicates in the credits.
Expand Down
24 changes: 17 additions & 7 deletions src/Build.vala.in
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public class Build {
public const string COPYRIGHT = "@COPYRIGHT@";
public const string PREFIX = "@PREFIX@";

public static string SYSTEM_INFO;

// Please do not remove the credits below. You may add your own, but keep the existing ones intact.

// TRANSLATORS: Replace this with your name. It will be displayed in the About dialog.
Expand All @@ -26,13 +28,21 @@ public class Build {
};
}

public static void print_info () {
var os_name = get_os_info ("NAME");
var os_ver = get_os_info ("VERSION");
message (@"$NAME $VERSION");
message (@"Running on: $os_name $os_ver");
message (@"Build prefix: \"$PREFIX\"");
}
public static string print_info () {
var os_name = get_os_info ("NAME");
var os_ver = get_os_info ("VERSION");

SYSTEM_INFO = @"$NAME $VERSION";
SYSTEM_INFO += @"\nRunning on: $os_name $os_ver";
SYSTEM_INFO += @"\nBuild prefix: \"$PREFIX\"";

var lines = SYSTEM_INFO.split ("\n");
foreach (unowned string line in lines) {
message (line);
}

return SYSTEM_INFO;
}

static string get_os_info (string key) {
return GLib.Environment.get_os_info (key) ?? "Unknown";
Expand Down
Empty file modified src/Dialogs/Compose.vala
100644 → 100755
Empty file.
Empty file modified src/Dialogs/ListEditor.vala
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/Dialogs/MainWindow.vala
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public class Tootle.Dialogs.MainWindow: Adw.ApplicationWindow, Saveable {
if (leaflet.child_transition_running)
return;

Widget unused_child;
Widget unused_child = null;
while ((unused_child = leaflet.get_adjacent_child (Adw.NavigationDirection.FORWARD)) != null) {
leaflet.remove (unused_child);
unused_child.dispose ();
Expand Down
Empty file modified src/Dialogs/NewAccount.vala
100644 → 100755
Empty file.
Empty file modified src/Dialogs/Preferences.vala
100644 → 100755
Empty file.
Empty file modified src/Dialogs/Saveable.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Accounts/AccountHolder.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Accounts/AccountStore.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Accounts/InstanceAccount.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Accounts/Mastodon/Account.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Accounts/SecretAccountStore.vala
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions src/Services/Cache/AbstractCache.vala
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class Tootle.AbstractCache : Object {
protected Map<string, Object> items;
protected Map<string, Soup.Message> items_in_progress;

public int maintenance_secs { get; set; default = 10; }
public int maintenance_secs { get; set; default = 5; }
public uint size {
get { return items.size; }
}
Expand All @@ -34,7 +34,7 @@ public class Tootle.AbstractCache : Object {
// if ("jpg" in iter.get_key ()) {
// warning (@"Key \"$(iter.get_key ())\": $(obj.ref_count)/$(min_ref_count)");
// }
if (obj.ref_count <= min_ref_count) {
if (obj.ref_count < min_ref_count) {
cleared++;
message (@"Freeing: $(iter.get_key ())");
iter.unset ();
Expand Down Expand Up @@ -62,7 +62,7 @@ public class Tootle.AbstractCache : Object {
return items.has_key (get_key (id));
}

public string insert (string id, owned Object obj) {
protected string insert (string id, owned Object obj) {
var key = get_key (id);
message ("Inserting: "+key);
items.@set (key, (owned) obj);
Expand Down
Empty file modified src/Services/Cache/EntityCache.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Cache/ImageCache.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Network/Network.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Network/Request.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Settings.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Streams/Streamable.vala
100644 → 100755
Empty file.
Empty file modified src/Services/Streams/Streams.vala
100644 → 100755
Empty file.
Empty file modified src/Utils/DateTime.vala
100644 → 100755
Empty file.
Empty file modified src/Utils/Desktop.vala
100644 → 100755
Empty file.
Empty file modified src/Utils/Html.vala
100644 → 100755
Empty file.
22 changes: 14 additions & 8 deletions src/Views/Base.vala
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Tootle.Views.Base : Box {
public string label { get; set; default = ""; }
public bool needs_attention { get; set; default = false; }
public bool current { get; set; default = false; }
public SimpleActionGroup? actions { get; set; }
protected SimpleActionGroup actions { get; set; default = new SimpleActionGroup (); }

[GtkChild] protected unowned Adw.HeaderBar header;
[GtkChild] protected unowned Button back_button;
Expand All @@ -29,6 +29,9 @@ public class Tootle.Views.Base : Box {
public string status_message { get; set; default = STATUS_EMPTY; }

construct {
build_actions ();
build_header ();

status_button.label = _("Reload");
bind_property ("state", states, "visible-child-name", BindingFlags.SYNC_CREATE);

Expand All @@ -45,14 +48,19 @@ public class Tootle.Views.Base : Box {
});

scrolled.get_style_context ().add_class (Dialogs.MainWindow.ZOOM_CLASS);

build_header ();
}
~Base () {
message ("Destroying base "+label);
}

public virtual void build_header () {
public override void dispose () {
actions.dispose ();
base.dispose ();
}

protected virtual void build_actions () {}

protected virtual void build_header () {
var title = new Adw.WindowTitle (null, null);
bind_property ("label", title, "title", BindingFlags.SYNC_CREATE);
header.title_widget = title;
Expand All @@ -63,12 +71,10 @@ public class Tootle.Views.Base : Box {
}

public virtual void on_shown () {
if (actions != null)
app.main_window.insert_action_group ("view", actions);
app.main_window.insert_action_group ("view", actions);
}
public virtual void on_hidden () {
if (actions != null)
app.main_window.insert_action_group ("view", null);
app.main_window.insert_action_group ("view", null);
}

public virtual void on_content_changed () {}
Expand Down
Empty file modified src/Views/Bookmarks.vala
100644 → 100755
Empty file.
Loading