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 ++-- capplets/appearance/appearance.h | 1 + capplets/appearance/data/appearance.ui | 88 ++++++++++++++++++++++++---------- 3 files changed, 69 insertions(+), 28 deletions(-) (limited to 'capplets') 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); } } } diff --git a/capplets/appearance/appearance.h b/capplets/appearance/appearance.h index 4aa7cb1e..0a01ddcf 100644 --- a/capplets/appearance/appearance.h +++ b/capplets/appearance/appearance.h @@ -27,6 +27,7 @@ #include #include #include +#include #include "mate-theme-info.h" diff --git a/capplets/appearance/data/appearance.ui b/capplets/appearance/data/appearance.ui index 700565f0..6c64cae7 100644 --- a/capplets/appearance/data/appearance.ui +++ b/capplets/appearance/data/appearance.ui @@ -28,6 +28,46 @@ Author: Wolfgang Ulbrich + + True + False + gtk-paste + + + True + False + gtk-new + + + True + False + gtk-open + + + True + False + gtk-save + + + True + False + gtk-print + + + True + False + gtk-quit + + + True + False + gtk-cut + + + True + False + gtk-copy + 100 1 @@ -3486,30 +3526,30 @@ Author: Wolfgang Ulbrich False - - gtk-new + + _New True False True - True + menu_gtk_new - - gtk-open + + _Open True False True - True + menu_gtk_open - - gtk-save + + _Save True False True - True + menu_gtk_save @@ -3519,12 +3559,12 @@ Author: Wolfgang Ulbrich - - gtk-print + + _Print True False True - True + menu_gtk_print @@ -3534,12 +3574,12 @@ Author: Wolfgang Ulbrich - - gtk-quit + + _Quit True False True - True + menu_gtk_quit @@ -3556,30 +3596,30 @@ Author: Wolfgang Ulbrich False - - gtk-cut + + cu_T True False True - True + menu_gtk_cut - - gtk-copy + + _Copy True False True - True + menu_gtk_copy - - gtk-paste + + _Paste True False True - True + menu_gtk_paste -- cgit v1.2.1