diff options
author | zhuyaliang <[email protected]> | 2023-04-04 11:39:52 +0800 |
---|---|---|
committer | Luke from DC <[email protected]> | 2023-04-05 03:16:24 +0000 |
commit | e6409a52cd242ec4564585525ff85912cb9c9c61 (patch) | |
tree | 613ed3806c927bffcb4262a66a2df469c43e9160 /capplets/appearance/appearance-ui.c | |
parent | 4be54ce126c7f511f63d5b6d02d3d9a6c3c15f32 (diff) | |
download | mate-control-center-e6409a52cd242ec4564585525ff85912cb9c9c61.tar.bz2 mate-control-center-e6409a52cd242ec4564585525ff85912cb9c9c61.tar.xz |
appearance: use mate_image_menu_item replace gtk_image_menu_item
Diffstat (limited to 'capplets/appearance/appearance-ui.c')
-rw-r--r-- | capplets/appearance/appearance-ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } } } |