diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-22 07:31:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-22 07:31:18 +0100 |
commit | 908778078736bd36f7a60a2d576d415cb8e000fa (patch) | |
tree | c6a4796c48b608c14dc7e9674cdbd38f905e3c15 /games-puzzle/gnome-taquin | |
parent | 185fa19bbf68a4d4dca534d2b46729207a177f16 (diff) |
gentoo resync : 22.05.2021
Diffstat (limited to 'games-puzzle/gnome-taquin')
4 files changed, 372 insertions, 1 deletions
diff --git a/games-puzzle/gnome-taquin/Manifest b/games-puzzle/gnome-taquin/Manifest index fd33e772da02..2b72be33e2ba 100644 --- a/games-puzzle/gnome-taquin/Manifest +++ b/games-puzzle/gnome-taquin/Manifest @@ -1,5 +1,7 @@ +AUX gnome-taquin-3.38.1-vala-0.50.4-GtkChild-1.patch 6122 BLAKE2B 5146cfd27fa3254187eeed6c529839597ff84b55cf3228e1777aaf40f20831467aaa04854f4a1215670ed1fcae2943bfc8eebfc865edd56cfb4d7818381c48f7 SHA512 11bd1424ad4f1102136c8a966befd66b0cb62d0b2f87e727c12910d0cc26ba391c049383e5b535fed27cdf09cafc89ce1a05b6f41e7f61d3969c3e2aaf17a3b2 +AUX gnome-taquin-3.38.1-vala-0.50.4-GtkChild-2.patch 9566 BLAKE2B 7f6dde7993122cbcb96ca3e4a493e965758e3d8a52e98734e9d0bd199dcd7ad8a74d5f16b9c24d5b0e7229f9749ba03a12847ceb5f88f9d1a7b8a788c785f767 SHA512 e726c24b6526b9d137cfe4acc0ae3c9caa36b1605f8ff6acd8a5dd0aea6339fafe8ec39d09cc55533055a25a1a9c6b2874c2a6e7dd5a2ce49aa72bd9004102c5 DIST gnome-taquin-3.36.4.tar.xz 5253972 BLAKE2B ddeacc57e52e434c5f3f7956226c4dc3c25416c61d8e920116dafebd89a3b442c01c54840bacdb93d5ee6ca4b6428c36f77c56f53651fe90ee8fda9026b23db5 SHA512 72e28698e292ec198c77f4f56624bafd88220157582d220ace363e29bb2f3bdbe7198c30348a6aef12e07dce275be6280fd4dc8a6bcc58f31d1e5ef54d0f3f7d DIST gnome-taquin-3.38.1.tar.xz 5265440 BLAKE2B f37397a4f3d0e71cfe39b8bce00fa7a04679467b402251aae155395740b655aa67031d2cdcc8d46fa45b9a69b1e829e0da883f17f9ec9a48d763098cf44e7f95 SHA512 c92244049bb24ab1585375ca6337965891bcaf46e642e009e3f670a818554d842c1f55c78735229198dfd6d96e95ee56e106a7eb238052e1382118287d9e28d6 EBUILD gnome-taquin-3.36.4.ebuild 1003 BLAKE2B 51ee839a014005e60356f9aefca14f6470c6cd0b348cc2e062559b3277b3f5a5fa473be186dc6b78f1f8d820d29a6222d2fb970f831c5dd1e1593d6828f01fd2 SHA512 bb3d7d15b49728f22367ad40fb881e864a96beaa03757b0fa986118c82d38fb2c1675ff92e95a3282b51615a0fae21c5c88ef80d16a25b3ffb669682c164220b -EBUILD gnome-taquin-3.38.1.ebuild 1004 BLAKE2B 2e611f4503e79f57c14154bdef1e8082d89e5232a3ab29249b5eaf3b9d6f2391b09736856035c826351e0fd22d7fc2fe4827d6afdd6a0c7295791331d10f7c06 SHA512 52cd3472415b43613790b2a760a795e468b6251add02e66c0f4a1c46dfef46a846ae83a6f6e88751e74c2fa0a1baf5ce757a0faf11263d18047ddd46c0234737 +EBUILD gnome-taquin-3.38.1.ebuild 1188 BLAKE2B 42be290ce4bbad8ef6c47f5cb8c9fe5e69e1c96048ed3715b0f6e3ae5fbd725c43c8dd92fccefe9a7767791df34aa9620b3e8175824ba8530039219fccd5e30a SHA512 bf926603e3af291bb23b286cb50bb08d18ba362ed3b9d0000a402df1c8a9e5ecddded7bd4918fe0317543f69d963b933cdc03dc6d624e08c6ebb460c35e10b32 MISC metadata.xml 249 BLAKE2B e71e1b95fee768c696704acbf7e3cf0e599ed2bc8de92bae0141d1194ef9e842bdc292798904487a9b90ddfda9b0e84abd3b76b1518576c1d288240e4e46f110 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 diff --git a/games-puzzle/gnome-taquin/files/gnome-taquin-3.38.1-vala-0.50.4-GtkChild-1.patch b/games-puzzle/gnome-taquin/files/gnome-taquin-3.38.1-vala-0.50.4-GtkChild-1.patch new file mode 100644 index 000000000000..e14267675ecb --- /dev/null +++ b/games-puzzle/gnome-taquin/files/gnome-taquin-3.38.1-vala-0.50.4-GtkChild-1.patch @@ -0,0 +1,134 @@ +From 99dea5e7863e112f33f16e59898c56a4f1a547b3 Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz <ricotz@ubuntu.com> +Date: Sat, 16 Jan 2021 14:00:15 +0100 +Subject: [PATCH] Don't alter or try to write [GtkChild] fields + +See https://gitlab.gnome.org/GNOME/vala/issues/1121 +--- + src/overlayed-list.vala | 38 +++++++++++++++++++------------------- + 1 file changed, 19 insertions(+), 19 deletions(-) + +diff --git a/src/overlayed-list.vala b/src/overlayed-list.vala +index 3fbb1c3..eb2404a 100644 +--- a/src/overlayed-list.vala ++++ b/src/overlayed-list.vala +@@ -89,11 +89,11 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + internal void set_window_size (AdaptativeWidget.WindowSize new_size) + { + if (!AdaptativeWidget.WindowSize.is_extra_thin (new_size) && AdaptativeWidget.WindowSize.is_extra_flat (new_size)) +- set_horizontal (ref main_context, ref edit_mode_box); ++ set_horizontal (ref main_context, edit_mode_box); + else +- set_vertical (ref main_context, ref edit_mode_box); ++ set_vertical (ref main_context, edit_mode_box); + } +- private static inline void set_horizontal (ref StyleContext main_context, ref Box edit_mode_box) ++ private static inline void set_horizontal (ref StyleContext main_context, Box edit_mode_box) + { + main_context.remove_class ("vertical"); + edit_mode_box.halign = Align.END; +@@ -102,7 +102,7 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + edit_mode_box.width_request = 160; + main_context.add_class ("horizontal"); + } +- private static inline void set_vertical (ref StyleContext main_context, ref Box edit_mode_box) ++ private static inline void set_vertical (ref StyleContext main_context, Box edit_mode_box) + { + main_context.remove_class ("horizontal"); + edit_mode_box.halign = Align.CENTER; +@@ -118,9 +118,9 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + + internal bool next_match () + { +- return _next_match (ref main_list_box); ++ return _next_match (main_list_box); + } +- private static inline bool _next_match (ref ListBox main_list_box) ++ private static inline bool _next_match (ListBox main_list_box) + { + ListBoxRow? row = main_list_box.get_selected_row (); // TODO multiple rows and focus-only lists + if (row == null) +@@ -130,7 +130,7 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + + if (row == null) + { +- _scroll_bottom (ref main_list_box); ++ _scroll_bottom (main_list_box); + return false; + } + main_list_box.select_row ((!) row); +@@ -140,9 +140,9 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + + internal bool previous_match () + { +- return _previous_match (ref main_list_box); ++ return _previous_match (main_list_box); + } +- private static inline bool _previous_match (ref ListBox main_list_box) ++ private static inline bool _previous_match (ListBox main_list_box) + { + uint n_items = main_list_box.get_children ().length (); // FIXME OverlayedList.n_items is unreliable + if (n_items == 0) +@@ -189,9 +189,9 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + + protected int [] get_selected_rows_indices () + { +- return _get_selected_rows_indices (ref main_list_box); ++ return _get_selected_rows_indices (main_list_box); + } +- private static inline int [] _get_selected_rows_indices (ref ListBox main_list_box) ++ private static inline int [] _get_selected_rows_indices (ListBox main_list_box) + { + int [] indices = new int [0]; + main_list_box.selected_foreach ((_list_box, selected_row) => { +@@ -205,9 +205,9 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + + protected void scroll_top () + { +- _scroll_top (ref main_list_box); ++ _scroll_top (main_list_box); + } +- private static inline void _scroll_top (ref ListBox main_list_box) ++ private static inline void _scroll_top (ListBox main_list_box) + { + Adjustment adjustment = main_list_box.get_adjustment (); + adjustment.set_value (adjustment.get_lower ()); +@@ -215,9 +215,9 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + + protected void scroll_bottom () + { +- _scroll_bottom (ref main_list_box); ++ _scroll_bottom (main_list_box); + } +- private static inline void _scroll_bottom (ref ListBox main_list_box) ++ private static inline void _scroll_bottom (ListBox main_list_box) + { + Adjustment adjustment = main_list_box.get_adjustment (); + adjustment.set_value (adjustment.get_upper ()); +@@ -225,9 +225,9 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + + internal bool handle_copy_text (out string copy_text) + { +- return _handle_copy_text (out copy_text, ref main_list_box); ++ return _handle_copy_text (out copy_text, main_list_box); + } +- private static inline bool _handle_copy_text (out string copy_text, ref ListBox main_list_box) ++ private static inline bool _handle_copy_text (out string copy_text, ListBox main_list_box) + { + List<weak ListBoxRow> selected_rows = main_list_box.get_selected_rows (); + OverlayedListRow row; +@@ -283,9 +283,9 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + + internal SelectionState get_selection_state () + { +- return _get_selection_state (ref main_list_box, ref main_list_store); ++ return _get_selection_state (main_list_box, ref main_list_store); + } +- private static inline SelectionState _get_selection_state (ref ListBox main_list_box, ref GLib.ListStore main_list_store) ++ private static inline SelectionState _get_selection_state (ListBox main_list_box, ref GLib.ListStore main_list_store) + { + List<weak ListBoxRow> selected_rows = main_list_box.get_selected_rows (); + uint n_selected_rows = selected_rows.length (); +-- +GitLab + diff --git a/games-puzzle/gnome-taquin/files/gnome-taquin-3.38.1-vala-0.50.4-GtkChild-2.patch b/games-puzzle/gnome-taquin/files/gnome-taquin-3.38.1-vala-0.50.4-GtkChild-2.patch new file mode 100644 index 000000000000..ad05067d7375 --- /dev/null +++ b/games-puzzle/gnome-taquin/files/gnome-taquin-3.38.1-vala-0.50.4-GtkChild-2.patch @@ -0,0 +1,229 @@ +From 66be44dc20d114e449fc33156e3939fd05dfbb16 Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz <ricotz@ubuntu.com> +Date: Wed, 17 Mar 2021 11:32:49 +0100 +Subject: [PATCH] Reference of [GtkChild] fields is handled by GtkBuilder, type + must be unowned + +--- + src/base-headerbar.vala | 14 +++++++------- + src/base-view.vala | 4 ++-- + src/base-window.vala | 6 +++--- + src/game-actionbar.vala | 6 +++--- + src/game-headerbar.vala | 4 ++-- + src/new-game-screen.vala | 18 +++++++++--------- + src/notifications-revealer.vala | 2 +- + src/overlayed-list.vala | 10 +++++----- + src/registry-placeholder.vala | 4 ++-- + 9 files changed, 34 insertions(+), 34 deletions(-) + +diff --git a/src/base-headerbar.vala b/src/base-headerbar.vala +index 8cb5774..315746f 100644 +--- a/src/base-headerbar.vala ++++ b/src/base-headerbar.vala +@@ -20,7 +20,7 @@ using Gtk; + [GtkTemplate (ui = "/org/gnome/Taquin/ui/base-headerbar.ui")] + private class BaseHeaderBar : NightTimeAwareHeaderBar, AdaptativeWidget + { +- [GtkChild] protected Box center_box; ++ [GtkChild] protected unowned Box center_box; + + construct + { +@@ -190,13 +190,13 @@ private class BaseHeaderBar : NightTimeAwareHeaderBar, AdaptativeWidget + * * default widgets + \*/ + +- [GtkChild] private Button go_back_button; +- [GtkChild] private Separator ltr_left_separator; +- [GtkChild] private Label title_label; +- [GtkChild] private MenuButton info_button; +- [GtkChild] private Separator ltr_right_separator; ++ [GtkChild] private unowned Button go_back_button; ++ [GtkChild] private unowned Separator ltr_left_separator; ++ [GtkChild] private unowned Label title_label; ++ [GtkChild] private unowned MenuButton info_button; ++ [GtkChild] private unowned Separator ltr_right_separator; + +- [GtkChild] protected Stack quit_button_stack; ++ [GtkChild] protected unowned Stack quit_button_stack; + + protected void set_default_widgets_states (string? title_label_text_or_null, + bool show_go_back_button, +diff --git a/src/base-view.vala b/src/base-view.vala +index cc54855..2c74499 100644 +--- a/src/base-view.vala ++++ b/src/base-view.vala +@@ -20,7 +20,7 @@ using Gtk; + [GtkTemplate (ui = "/org/gnome/Taquin/ui/base-view.ui")] + private class BaseView : Stack, AdaptativeWidget + { +- [GtkChild] protected Grid main_grid; ++ [GtkChild] protected unowned Grid main_grid; + + internal virtual bool handle_copy_text (out string copy_text) + { +@@ -109,7 +109,7 @@ private class BaseView : Stack, AdaptativeWidget + * * notifications + \*/ + +- [GtkChild] private Overlay notifications_overlay; ++ [GtkChild] private unowned Overlay notifications_overlay; + + private bool notifications_revealer_created = false; + private NotificationsRevealer notifications_revealer; +diff --git a/src/base-window.vala b/src/base-window.vala +index 2c652ab..02e0de6 100644 +--- a/src/base-window.vala ++++ b/src/base-window.vala +@@ -74,9 +74,9 @@ private class BaseWindow : AdaptativeWindow, AdaptativeWidget + * * main layout + \*/ + +- [GtkChild] private Grid main_grid; +- [GtkChild] private Button unfullscreen_button; +- [GtkChild] private Overlay main_overlay; ++ [GtkChild] private unowned Grid main_grid; ++ [GtkChild] private unowned Button unfullscreen_button; ++ [GtkChild] private unowned Overlay main_overlay; + + protected void add_to_main_overlay (Widget widget) + { +diff --git a/src/game-actionbar.vala b/src/game-actionbar.vala +index e75907e..5ff275f 100644 +--- a/src/game-actionbar.vala ++++ b/src/game-actionbar.vala +@@ -28,8 +28,8 @@ private class GameActionBar : Revealer, AdaptativeWidget + [CCode (notify = false)] public string window_name { private get; protected construct set; default = "" ; } + [CCode (notify = false)] public Widget? game_widget { private get; protected construct ; default = null ; } + +- [GtkChild] private ActionBar action_bar; +- [GtkChild] private Label game_label; ++ [GtkChild] private unowned ActionBar action_bar; ++ [GtkChild] private unowned Label game_label; + + construct + { +@@ -93,7 +93,7 @@ private class GameActionBar : Revealer, AdaptativeWidget + [GtkTemplate (ui = "/org/gnome/Taquin/ui/game-actionbar-placeholder.ui")] + private class GameActionBarPlaceHolder : Revealer, AdaptativeWidget + { +- [GtkChild] private Widget placeholder_child; ++ [GtkChild] private unowned Widget placeholder_child; + private GameActionBar actionbar; + + internal GameActionBarPlaceHolder (GameActionBar _actionbar) +diff --git a/src/game-headerbar.vala b/src/game-headerbar.vala +index 94fb7de..324b7bd 100644 +--- a/src/game-headerbar.vala ++++ b/src/game-headerbar.vala +@@ -23,8 +23,8 @@ using Gtk; + [GtkTemplate (ui = "/org/gnome/Taquin/ui/game-headerbar.ui")] + private class GameHeaderBar : BaseHeaderBar, AdaptativeWidget + { +- [GtkChild] private Button new_game_button; +- [GtkChild] private Button back_button; ++ [GtkChild] private unowned Button new_game_button; ++ [GtkChild] private unowned Button back_button; + + [CCode (notify = false)] public bool window_has_name { private get; protected construct set; default = false; } + [CCode (notify = false)] public string window_name { private get; protected construct set; default = ""; } +diff --git a/src/new-game-screen.vala b/src/new-game-screen.vala +index 3e56b2f..e6919e5 100644 +--- a/src/new-game-screen.vala ++++ b/src/new-game-screen.vala +@@ -23,11 +23,11 @@ using Gtk; + [GtkTemplate (ui = "/org/gnome/Taquin/ui/new-game-screen.ui")] + private class NewGameScreen : Box, AdaptativeWidget + { +- [GtkChild] private ModelButton modelbutton_one; +- [GtkChild] private ModelButton modelbutton_two; ++ [GtkChild] private unowned ModelButton modelbutton_one; ++ [GtkChild] private unowned ModelButton modelbutton_two; + +- [GtkChild] private Gtk.MenuButton menubutton_one; +- [GtkChild] private Gtk.MenuButton menubutton_two; ++ [GtkChild] private unowned Gtk.MenuButton menubutton_one; ++ [GtkChild] private unowned Gtk.MenuButton menubutton_two; + + construct + { +@@ -106,12 +106,12 @@ private class NewGameScreen : Box, AdaptativeWidget + map.connect (() => games_box.show ()); + } + +- [GtkChild] private Box games_box; +- [GtkChild] private Box options_box; ++ [GtkChild] private unowned Box games_box; ++ [GtkChild] private unowned Box options_box; + +- [GtkChild] private Label games_label; +- [GtkChild] private Label options_label; +- [GtkChild] private Separator options_separator; ++ [GtkChild] private unowned Label games_label; ++ [GtkChild] private unowned Label options_label; ++ [GtkChild] private unowned Separator options_separator; + + private bool phone_size = false; + private bool extra_thin = false; +diff --git a/src/notifications-revealer.vala b/src/notifications-revealer.vala +index 8831e3e..92813d5 100644 +--- a/src/notifications-revealer.vala ++++ b/src/notifications-revealer.vala +@@ -20,7 +20,7 @@ using Gtk; + [GtkTemplate (ui = "/org/gnome/Taquin/ui/notifications-revealer.ui")] + private class NotificationsRevealer : Revealer, AdaptativeWidget + { +- [GtkChild] private Label notification_label; ++ [GtkChild] private unowned Label notification_label; + + construct + { +diff --git a/src/overlayed-list.vala b/src/overlayed-list.vala +index eb2404a..f7ed170 100644 +--- a/src/overlayed-list.vala ++++ b/src/overlayed-list.vala +@@ -20,12 +20,12 @@ using Gtk; + [GtkTemplate (ui = "/org/gnome/Taquin/ui/overlayed-list.ui")] + private abstract class OverlayedList : Overlay, AdaptativeWidget + { +- [GtkChild] protected ListBox main_list_box; ++ [GtkChild] protected unowned ListBox main_list_box; + private StyleContext main_list_box_context; + protected GLib.ListStore main_list_store = new GLib.ListStore (typeof (Widget)); + +- [GtkChild] private ScrolledWindow scrolled; +- [GtkChild] private Box edit_mode_box; ++ [GtkChild] private unowned ScrolledWindow scrolled; ++ [GtkChild] private unowned Box edit_mode_box; + + /*\ + * * differed construct +@@ -45,8 +45,8 @@ private abstract class OverlayedList : Overlay, AdaptativeWidget + } + + +- [GtkChild] private ModelButton enter_edit_mode_button; +- [GtkChild] private ModelButton leave_edit_mode_button; ++ [GtkChild] private unowned ModelButton enter_edit_mode_button; ++ [GtkChild] private unowned ModelButton leave_edit_mode_button; + [CCode (notify = false)] public string edit_mode_action_prefix + { + construct +diff --git a/src/registry-placeholder.vala b/src/registry-placeholder.vala +index b92c464..c662aff 100644 +--- a/src/registry-placeholder.vala ++++ b/src/registry-placeholder.vala +@@ -20,8 +20,8 @@ using Gtk; + [GtkTemplate (ui = "/org/gnome/Taquin/ui/registry-placeholder.ui")] + private class RegistryPlaceholder : Grid + { +- [GtkChild] private Label placeholder_label; +- [GtkChild] private Image placeholder_image; ++ [GtkChild] private unowned Label placeholder_label; ++ [GtkChild] private unowned Image placeholder_image; + + [CCode (notify = false)] public string label { internal construct set { placeholder_label.label = value; }} + [CCode (notify = false)] public string icon_name { private get; internal construct; } +-- +GitLab + diff --git a/games-puzzle/gnome-taquin/gnome-taquin-3.38.1.ebuild b/games-puzzle/gnome-taquin/gnome-taquin-3.38.1.ebuild index 67015ac256dc..47c0bdf04fb2 100644 --- a/games-puzzle/gnome-taquin/gnome-taquin-3.38.1.ebuild +++ b/games-puzzle/gnome-taquin/gnome-taquin-3.38.1.ebuild @@ -34,6 +34,12 @@ BDEPEND=" gnome-base/librsvg:2[vala] " +PATCHES=( + # backport for https://gitlab.gnome.org/GNOME/gnome-nibbles/-/issues/52 + "${FILESDIR}"/${P}-vala-0.50.4-GtkChild-1.patch + "${FILESDIR}"/${P}-vala-0.50.4-GtkChild-2.patch +) + src_prepare() { xdg_src_prepare vala_src_prepare |