From e6409a52cd242ec4564585525ff85912cb9c9c61 Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Tue, 4 Apr 2023 11:39:52 +0800 Subject: appearance: use mate_image_menu_item replace gtk_image_menu_item --- capplets/appearance/appearance-ui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'capplets/appearance/appearance-ui.c') diff --git a/capplets/appearance/appearance-ui.c b/capplets/appearance/appearance-ui.c index 5b0437d7..ebf67ba9 100644 --- a/capplets/appearance/appearance-ui.c +++ b/capplets/appearance/appearance-ui.c @@ -42,22 +42,22 @@ set_have_icons (AppearanceData *data, gboolean value) const char **name; for (name = menu_item_names; *name != NULL; name++) { - GtkImageMenuItem *item = GTK_IMAGE_MENU_ITEM (appearance_capplet_get_widget (data, *name)); + MateImageMenuItem *item = MATE_IMAGE_MENU_ITEM (appearance_capplet_get_widget (data, *name)); GtkWidget *image; if (value) { image = g_object_get_data (G_OBJECT (item), "image"); if (image) { - gtk_image_menu_item_set_image (item, image); + mate_image_menu_item_set_image (item, image); g_object_unref (image); } } else { - image = gtk_image_menu_item_get_image (item); + image = mate_image_menu_item_get_image (item); g_object_set_data (G_OBJECT (item), "image", image); g_object_ref (image); - gtk_image_menu_item_set_image (item, NULL); + mate_image_menu_item_set_image (item, NULL); } } } -- cgit v1.2.1