From c0bddf1331ada3bb817811ae4b92b2d95299fee2 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 24 Jul 2020 00:40:20 +0200 Subject: Some refactoring to avoid warnings --- src/idousermenuitem.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/idousermenuitem.c') diff --git a/src/idousermenuitem.c b/src/idousermenuitem.c index f4e146b..c8ddc5e 100644 --- a/src/idousermenuitem.c +++ b/src/idousermenuitem.c @@ -212,7 +212,9 @@ ido_user_menu_item_init (IdoUserMenuItem *self) priv->tick_icon = gtk_image_new_from_icon_name ("account-logged-in", GTK_ICON_SIZE_MENU); - gtk_misc_set_alignment(GTK_MISC(priv->tick_icon), 1.0, 0.5); + + gtk_widget_set_halign(priv->tick_icon, GTK_ALIGN_END); + gtk_widget_set_valign(priv->tick_icon, GTK_ALIGN_CENTER); // Pack it together gtk_box_pack_start (GTK_BOX (priv->container), @@ -303,10 +305,8 @@ ido_user_menu_item_set_icon_from_file_icon (IdoUserMenuItem *self, file = g_file_icon_get_file (G_FILE_ICON (icon)); path = g_file_get_path (file); - /* width and height will always be set by this function */ - gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (GTK_WIDGET (self)), - GTK_ICON_SIZE_MENU, - &width, &height); + /* width and height will always be set by this function */ + gtk_icon_size_lookup(GTK_ICON_SIZE_MENU, &width, &height); pixbuf = gdk_pixbuf_new_from_file_at_scale (path, width, height, TRUE, NULL); g_free (path); -- cgit v1.2.3