aboutsummaryrefslogtreecommitdiff
path: root/src/idosourcemenuitem.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/idosourcemenuitem.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/idosourcemenuitem.c')
-rw-r--r--src/idosourcemenuitem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/idosourcemenuitem.c b/src/idosourcemenuitem.c
index 79455da..44ddf6f 100644
--- a/src/idosourcemenuitem.c
+++ b/src/idosourcemenuitem.c
@@ -49,13 +49,14 @@ ido_source_menu_item_constructed (GObject *object)
gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &icon_width, NULL);
item->icon = g_object_ref (gtk_image_new ());
- gtk_widget_set_margin_left (item->icon, icon_width);
- gtk_widget_set_margin_right (item->icon, 6);
+ gtk_widget_set_margin_start(item->icon, icon_width);
+ gtk_widget_set_margin_end(item->icon, 6);
item->label = g_object_ref (gtk_label_new (""));
gtk_label_set_max_width_chars (GTK_LABEL (item->label), 40);
gtk_label_set_ellipsize (GTK_LABEL (item->label), PANGO_ELLIPSIZE_END);
- gtk_misc_set_alignment (GTK_MISC (item->label), 0.0, 0.5);
+ gtk_widget_set_halign(item->label, GTK_ALIGN_START);
+ gtk_widget_set_valign(item->label, GTK_ALIGN_CENTER);
item->detail = g_object_ref (ido_detail_label_new (""));
gtk_widget_set_halign (item->detail, GTK_ALIGN_END);