summaryrefslogtreecommitdiff
path: root/drivemount/src/drive-button.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2023-10-06 14:48:35 +0200
committerLuke from DC <[email protected]>2023-10-08 23:21:43 +0000
commitfd9dbddae4cb368267ee845b4ab29547e836ed09 (patch)
treef9faff88eefc595d5a3cdf0e93954ab1013cd6fe /drivemount/src/drive-button.c
parente94129ceb3f726193c667fb7b9a0b72f5c0eee44 (diff)
downloadmate-applets-fd9dbddae4cb368267ee845b4ab29547e836ed09.tar.bz2
mate-applets-fd9dbddae4cb368267ee845b4ab29547e836ed09.tar.xz
replace deprecated gtk_image_menu_item*
Diffstat (limited to 'drivemount/src/drive-button.c')
-rw-r--r--drivemount/src/drive-button.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivemount/src/drive-button.c b/drivemount/src/drive-button.c
index e0b86bf1..d33600f0 100644
--- a/drivemount/src/drive-button.c
+++ b/drivemount/src/drive-button.c
@@ -31,6 +31,8 @@
#include <gdk/gdkkeysyms.h>
#include <gio/gdesktopappinfo.h>
+#include <libmate-desktop/mate-image-menu-item.h>
+
#include <string.h>
enum {
@@ -531,10 +533,10 @@ create_menu_item (DriveButton *self,
{
GtkWidget *item, *image;
- item = gtk_image_menu_item_new_with_mnemonic (label);
+ item = mate_image_menu_item_new_with_mnemonic (label);
if (icon_name) {
image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+ mate_image_menu_item_set_image (MATE_IMAGE_MENU_ITEM (item), image);
gtk_widget_show (image);
}
if (callback)