From ee84552160f9c22ad696969e837793f53c975d46 Mon Sep 17 00:00:00 2001 From: raveit65 <mate@raveit.de> Date: Sun, 1 Oct 2023 20:58:55 +0200 Subject: replace deprecated gtk_image_menu_item --- src/ui/menu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ui/menu.c b/src/ui/menu.c index 34e4b5d9..54429bf0 100644 --- a/src/ui/menu.c +++ b/src/ui/menu.c @@ -24,6 +24,8 @@ #include <config.h> #include <glib/gi18n-lib.h> +#include <libmate-desktop/mate-image-menu-item.h> + #include <gdk/gdkx.h> #include <stdio.h> #include <string.h> @@ -271,9 +273,9 @@ static GtkWidget* menu_item_new(MenuItem* menuitem, int workspace_id) { GtkWidget* image = gtk_image_new_from_icon_name(menuitem->stock_id, GTK_ICON_SIZE_MENU); - mi = gtk_image_menu_item_new(); + mi = mate_image_menu_item_new(); - gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(mi), image); + mate_image_menu_item_set_image(MATE_IMAGE_MENU_ITEM(mi), image); gtk_widget_show(image); } else if (menuitem->type == MENU_ITEM_CHECKBOX) -- cgit v1.2.1