diff options
| -rw-r--r-- | meta-gnome/recipes-gnome/nautilus/nautilus/0001-initialize-GdkDragAction-action-to-0.patch | 47 | ||||
| -rw-r--r-- | meta-gnome/recipes-gnome/nautilus/nautilus_44.1.bb (renamed from meta-gnome/recipes-gnome/nautilus/nautilus_44.0.bb) | 3 |
2 files changed, 1 insertions, 49 deletions
diff --git a/meta-gnome/recipes-gnome/nautilus/nautilus/0001-initialize-GdkDragAction-action-to-0.patch b/meta-gnome/recipes-gnome/nautilus/nautilus/0001-initialize-GdkDragAction-action-to-0.patch deleted file mode 100644 index abe584874c..0000000000 --- a/meta-gnome/recipes-gnome/nautilus/nautilus/0001-initialize-GdkDragAction-action-to-0.patch +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | From d8f8859369b228d86aeeb043d732b9c60fdce289 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 24 Mar 2023 15:29:04 -0700 | ||
| 4 | Subject: [PATCH] initialize GdkDragAction action to 0 | ||
| 5 | |||
| 6 | This helps in silencing clang found warning | ||
| 7 | |||
| 8 | autilus-pathbar.c:759:9: error: variable 'action' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] | ||
| 9 | if (G_VALUE_HOLDS (value, GDK_TYPE_FILE_LIST)) | ||
| 10 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/1158] | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | src/nautilus-pathbar.c | 2 +- | ||
| 16 | src/nautilus-window.c | 2 +- | ||
| 17 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
| 18 | |||
| 19 | diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c | ||
| 20 | index 1b6ea6a..a5ab780 100644 | ||
| 21 | --- a/src/nautilus-pathbar.c | ||
| 22 | +++ b/src/nautilus-pathbar.c | ||
| 23 | @@ -746,7 +746,7 @@ on_drag_motion (GtkDropTarget *target, | ||
| 24 | gpointer user_data) | ||
| 25 | { | ||
| 26 | ButtonData *button_data = user_data; | ||
| 27 | - GdkDragAction action; | ||
| 28 | + GdkDragAction action = 0; | ||
| 29 | const GValue *value; | ||
| 30 | graphene_point_t start; | ||
| 31 | |||
| 32 | diff --git a/src/nautilus-window.c b/src/nautilus-window.c | ||
| 33 | index 30299b1..74c548f 100644 | ||
| 34 | --- a/src/nautilus-window.c | ||
| 35 | +++ b/src/nautilus-window.c | ||
| 36 | @@ -1476,7 +1476,7 @@ extra_drag_value_cb (AdwTabBar *self, | ||
| 37 | { | ||
| 38 | NautilusWindowSlot *slot = NAUTILUS_WINDOW_SLOT (adw_tab_page_get_child (page)); | ||
| 39 | g_autoptr (NautilusFile) file = nautilus_file_get (nautilus_window_slot_get_location (slot)); | ||
| 40 | - GdkDragAction action; | ||
| 41 | + GdkDragAction action = 0; | ||
| 42 | |||
| 43 | if (value == NULL) | ||
| 44 | { | ||
| 45 | -- | ||
| 46 | 2.40.0 | ||
| 47 | |||
diff --git a/meta-gnome/recipes-gnome/nautilus/nautilus_44.0.bb b/meta-gnome/recipes-gnome/nautilus/nautilus_44.1.bb index e066556177..9c60d15d86 100644 --- a/meta-gnome/recipes-gnome/nautilus/nautilus_44.0.bb +++ b/meta-gnome/recipes-gnome/nautilus/nautilus_44.1.bb | |||
| @@ -26,8 +26,7 @@ inherit gnomebase gsettings gobject-introspection gtk-doc gettext features_check | |||
| 26 | def gnome_verdir(v): | 26 | def gnome_verdir(v): |
| 27 | return oe.utils.trim_version(v, 1) | 27 | return oe.utils.trim_version(v, 1) |
| 28 | 28 | ||
| 29 | SRC_URI += "file://0001-initialize-GdkDragAction-action-to-0.patch" | 29 | SRC_URI[archive.sha256sum] = "360802a595e3edbad962c8cea353b62baa8be407513b5162c89c933ca5387aa9" |
| 30 | SRC_URI[archive.sha256sum] = "57b99ebb8e2b9c1512d381e53096188c087b33410d6c52d87a27bd60ee76ac7f" | ||
| 31 | 30 | ||
| 32 | REQUIRED_DISTRO_FEATURES = "x11 opengl" | 31 | REQUIRED_DISTRO_FEATURES = "x11 opengl" |
| 33 | 32 | ||
