aboutsummaryrefslogtreecommitdiff
path: root/src/idousermenuitem.c
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-07-24 00:40:20 +0200
committerRobert Tari <robert@tari.in>2020-07-24 00:40:20 +0200
commitc0bddf1331ada3bb817811ae4b92b2d95299fee2 (patch)
tree911f038a2d8ba4f5b033e9bd91950d93bb9e252a /src/idousermenuitem.c
parentf8f87bdc7d9991edb984579dd230cc244a3e97eb (diff)
downloadayatana-ido-c0bddf1331ada3bb817811ae4b92b2d95299fee2.tar.gz
ayatana-ido-c0bddf1331ada3bb817811ae4b92b2d95299fee2.tar.bz2
ayatana-ido-c0bddf1331ada3bb817811ae4b92b2d95299fee2.zip
Some refactoring to avoid warnings
Diffstat (limited to 'src/idousermenuitem.c')
-rw-r--r--src/idousermenuitem.c10
1 files changed, 5 insertions, 5 deletions
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);