diff options
author | raveit65 <[email protected]> | 2023-10-01 20:58:55 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-10-05 10:18:03 +0200 |
commit | ee84552160f9c22ad696969e837793f53c975d46 (patch) | |
tree | 3d499a4555975c84c9541d10bbcb1ed96b09ba6b /src/ui | |
parent | 5867bb2694f7a7d7cb72e50be0a61239321e46d3 (diff) | |
download | marco-ee84552160f9c22ad696969e837793f53c975d46.tar.bz2 marco-ee84552160f9c22ad696969e837793f53c975d46.tar.xz |
replace deprecated gtk_image_menu_item
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/menu.c | 6 |
1 files changed, 4 insertions, 2 deletions
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) |