summaryrefslogtreecommitdiff
path: root/drivemount
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
parente94129ceb3f726193c667fb7b9a0b72f5c0eee44 (diff)
downloadmate-applets-fd9dbddae4cb368267ee845b4ab29547e836ed09.tar.bz2
mate-applets-fd9dbddae4cb368267ee845b4ab29547e836ed09.tar.xz
replace deprecated gtk_image_menu_item*
Diffstat (limited to 'drivemount')
-rw-r--r--drivemount/src/Makefile.am7
-rw-r--r--drivemount/src/drive-button.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/drivemount/src/Makefile.am b/drivemount/src/Makefile.am
index a887b1e5..855e48e2 100644
--- a/drivemount/src/Makefile.am
+++ b/drivemount/src/Makefile.am
@@ -6,6 +6,7 @@ AM_CPPFLAGS = \
-DDRIVEMOUNT_RESOURCE_PATH=\""/org/mate/mate-applets/drivemount/"\" \
${WARN_CFLAGS} \
$(MATE_APPLETS4_CFLAGS) \
+ $(MATE_DESKTOP_CFLAGS) \
$(NULL)
BUILT_SOURCES = \
@@ -28,13 +29,15 @@ nodist_libmate_drivemount_applet_la_SOURCES = $(BUILT_SOURCES)
libmate_drivemount_applet_la_SOURCES = $(APPLET_SOURCES)
libmate_drivemount_applet_la_CFLAGS = $(AM_CFLAGS)
libmate_drivemount_applet_la_LDFLAGS = -module -avoid-version
-libmate_drivemount_applet_la_LIBADD = $(APPLET_LIBS)
+libmate_drivemount_applet_la_LIBADD = $(APPLET_LIBS) \
+ $(MATE_DESKTOP_LIBS)
else !ENABLE_IN_PROCESS
libexec_PROGRAMS = mate-drivemount-applet
nodist_mate_drivemount_applet_SOURCES = $(BUILT_SOURCES)
mate_drivemount_applet_SOURCES = $(APPLET_SOURCES)
mate_drivemount_applet_CFLAGS = $(AM_CFLAGS)
-mate_drivemount_applet_LDADD = $(APPLET_LIBS)
+mate_drivemount_applet_LDADD = $(APPLET_LIBS) \
+ $(MATE_DESKTOP_LIBS)
endif !ENABLE_IN_PROCESS
drivemount-resources.c: ../data/drivemount-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../data/ --generate-dependencies $(srcdir)/../data/drivemount-resources.gresource.xml)
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)