From ac8612ca04a798a084630530205ec8bf28a61c07 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 18 Oct 2023 00:03:07 +0200 Subject: replace deprecated gtk_image_menu_item* --- mate-dictionary/src/Makefile.am | 6 ++++++ mate-dictionary/src/gdict-sidebar.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'mate-dictionary/src') diff --git a/mate-dictionary/src/Makefile.am b/mate-dictionary/src/Makefile.am index fb05c24e..8616b3ef 100644 --- a/mate-dictionary/src/Makefile.am +++ b/mate-dictionary/src/Makefile.am @@ -60,6 +60,7 @@ mate_dictionary_CFLAGS = \ $(GLIB_CFLAGS) \ $(GIO_CFLAGS) \ $(GTK_CFLAGS) \ + $(MATE_DESKTOP_CFLAGS) \ $(WARN_CFLAGS) \ $(NULL) @@ -69,6 +70,7 @@ mate_dictionary_LDADD = \ $(GLIB_LIBS) \ $(GIO_LIBS) \ $(GTK_LIBS) \ + $(MATE_DESKTOP_LIBS) \ $(NULL) if BUILD_GDICT_APPLET @@ -100,6 +102,7 @@ libmate_dictionary_applet_la_CFLAGS = \ $(GLIB_CFLAGS) \ $(GIO_CFLAGS) \ $(GTK_CFLAGS) \ + $(MATE_DESKTOP_CFLAGS) \ $(WARN_CFLAGS) \ $(NULL) @@ -110,6 +113,7 @@ libmate_dictionary_applet_la_LIBADD = \ $(GLIB_LIBS) \ $(GIO_LIBS) \ $(GTK_LIBS) \ + $(MATE_DESKTOP_LIBS) \ $(NULL) if ENABLE_WAYLAND @@ -146,6 +150,7 @@ mate_dictionary_applet_CFLAGS = \ $(GLIB_CFLAGS) \ $(GIO_CFLAGS) \ $(GTK_CFLAGS) \ + $(MATE_DESKTOP_CFLAGS) \ $(WARN_CFLAGS) \ $(NULL) @@ -156,6 +161,7 @@ mate_dictionary_applet_LDADD = \ $(GLIB_LIBS) \ $(GIO_LIBS) \ $(GTK_LIBS) \ + $(MATE_DESKTOP_LIBS) \ $(NULL) endif # ENABLE_IN_PROCESS endif # BUILD_GDICT_APPLET diff --git a/mate-dictionary/src/gdict-sidebar.c b/mate-dictionary/src/gdict-sidebar.c index 72c56f3f..317f4cbf 100644 --- a/mate-dictionary/src/gdict-sidebar.c +++ b/mate-dictionary/src/gdict-sidebar.c @@ -33,6 +33,8 @@ #include #include +#include + #include "gdict-sidebar.h" typedef struct @@ -409,7 +411,7 @@ gdict_sidebar_add_page (GdictSidebar *sidebar, NULL); /* add the menu item for the page */ - menu_item = gtk_image_menu_item_new_with_label (page_name); + menu_item = mate_image_menu_item_new_with_label (page_name); g_object_set_qdata_full (G_OBJECT (menu_item), sidebar_page_id_quark, g_strdup (page_id), -- cgit v1.2.1