aboutsummaryrefslogtreecommitdiff
path: root/src/idousermenuitem.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-07-24 06:31:27 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-07-24 06:31:27 +0200
commit669fb5e06db6ea18f1500fc57d3fc1704b359a40 (patch)
treeedfdb48ea61a36ecfd68cf5ea3b9f6f954e0fe60 /src/idousermenuitem.c
parentf8f87bdc7d9991edb984579dd230cc244a3e97eb (diff)
parent40a8f0450fa67405b69575a2d09683270a01518c (diff)
downloadayatana-ido-669fb5e06db6ea18f1500fc57d3fc1704b359a40.tar.gz
ayatana-ido-669fb5e06db6ea18f1500fc57d3fc1704b359a40.tar.bz2
ayatana-ido-669fb5e06db6ea18f1500fc57d3fc1704b359a40.zip
Merge branch 'tari01-master'
Attributs GH PR #5: https://github.com/AyatanaIndicators/ayatana-ido/pull/5
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);