diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-29 10:04:47 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-08-30 00:14:58 -0700 |
commit | d99900e121e884b59d6cd9f76115d351de85d650 (patch) | |
tree | 649ebf0370340c0d0899e14e0a22c67b249d97c6 /meta-oe/recipes-gnome | |
parent | f846d3934d0f6ca894a5f442f13dbd8fc2c2d5cb (diff) | |
download | meta-openembedded-d99900e121e884b59d6cd9f76115d351de85d650.tar.gz |
gtk+: Fix function signature of create_menu()
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-gnome')
-rw-r--r-- | meta-oe/recipes-gnome/gtk+/gtk+/0001-Fix-signature-of-create_menu-function.patch | 50 | ||||
-rw-r--r-- | meta-oe/recipes-gnome/gtk+/gtk+_2.24.33.bb | 1 |
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 @@ | |||
1 | From a703e2406fda3dc150574ae2f90cb5f4810d0601 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 29 Aug 2022 00:25:19 -0700 | ||
4 | Subject: [PATCH] Fix signature of create_menu() function | ||
5 | |||
6 | Upstream-Status: Inappropriate [EOL] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | tests/testmenubars.c | 8 ++++---- | ||
10 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
11 | |||
12 | diff --git a/tests/testmenubars.c b/tests/testmenubars.c | ||
13 | index 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 | -- | ||
49 | 2.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 | ||
15 | SRC_URI[sha256sum] = "ac2ac757f5942d318a311a54b0c80b5ef295f299c2a73c632f6bfb1ff49cc6da" | 16 | SRC_URI[sha256sum] = "ac2ac757f5942d318a311a54b0c80b5ef295f299c2a73c632f6bfb1ff49cc6da" |