summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-gnome
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-gnome')
-rw-r--r--meta-oe/recipes-gnome/gtk+/gtk+/0001-Fix-signature-of-create_menu-function.patch50
-rw-r--r--meta-oe/recipes-gnome/gtk+/gtk+_2.24.33.bb1
2 files changed, 51 insertions, 0 deletions
diff --git a/meta-oe/recipes-gnome/gtk+/gtk+/0001-Fix-signature-of-create_menu-function.patch b/meta-oe/recipes-gnome/gtk+/gtk+/0001-Fix-signature-of-create_menu-function.patch
new file mode 100644
index 000000000..6b5f92839
--- /dev/null
+++ b/meta-oe/recipes-gnome/gtk+/gtk+/0001-Fix-signature-of-create_menu-function.patch
@@ -0,0 +1,50 @@
1From a703e2406fda3dc150574ae2f90cb5f4810d0601 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 29 Aug 2022 00:25:19 -0700
4Subject: [PATCH] Fix signature of create_menu() function
5
6Upstream-Status: Inappropriate [EOL]
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 tests/testmenubars.c | 8 ++++----
10 1 file changed, 4 insertions(+), 4 deletions(-)
11
12diff --git a/tests/testmenubars.c b/tests/testmenubars.c
13index 416a939..7f247f8 100644
14--- a/tests/testmenubars.c
15+++ b/tests/testmenubars.c
16@@ -21,7 +21,7 @@
17 #include <gtk/gtk.h>
18
19 static GtkWidget *
20-create_menu (depth)
21+create_menu (int depth)
22 {
23 GtkWidget *menu;
24 GtkWidget *menuitem;
25@@ -70,19 +70,19 @@ create_menubar (GtkPackDirection pack_dir,
26 menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_HOME, NULL);
27 gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
28 gtk_label_set_angle (GTK_LABEL (GTK_BIN (menuitem)->child), angle);
29- menu = create_menu (2, TRUE);
30+ menu = create_menu (2);
31 gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
32
33 menuitem = gtk_menu_item_new_with_label ("foo");
34 gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
35 gtk_label_set_angle (GTK_LABEL (GTK_BIN (menuitem)->child), angle);
36- menu = create_menu (2, TRUE);
37+ menu = create_menu (2);
38 gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
39
40 menuitem = gtk_menu_item_new_with_label ("bar");
41 gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
42 gtk_label_set_angle (GTK_LABEL (GTK_BIN (menuitem)->child), angle);
43- menu = create_menu (2, TRUE);
44+ menu = create_menu (2);
45 gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
46
47 return menubar;
48--
492.37.2
50
diff --git a/meta-oe/recipes-gnome/gtk+/gtk+_2.24.33.bb b/meta-oe/recipes-gnome/gtk+/gtk+_2.24.33.bb
index 082967e04..5eac641cf 100644
--- a/meta-oe/recipes-gnome/gtk+/gtk+_2.24.33.bb
+++ b/meta-oe/recipes-gnome/gtk+/gtk+_2.24.33.bb
@@ -10,6 +10,7 @@ SRC_URI = "http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-${PV}.tar.xz \
10 file://doc-fixes.patch \ 10 file://doc-fixes.patch \
11 file://strict-prototypes.patch \ 11 file://strict-prototypes.patch \
12 file://0001-Do-not-look-into-HOME-when-looking-for-gtk-modules.patch \ 12 file://0001-Do-not-look-into-HOME-when-looking-for-gtk-modules.patch \
13 file://0001-Fix-signature-of-create_menu-function.patch \
13 " 14 "
14 15
15SRC_URI[sha256sum] = "ac2ac757f5942d318a311a54b0c80b5ef295f299c2a73c632f6bfb1ff49cc6da" 16SRC_URI[sha256sum] = "ac2ac757f5942d318a311a54b0c80b5ef295f299c2a73c632f6bfb1ff49cc6da"