aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-05-17 20:26:59 +0200
committerRobert Tari <robert@tari.in>2021-05-17 20:26:59 +0200
commite6a410de267ce99eb74791a1460e63705ab00ace (patch)
treed126095d9c0a931f6335412aa137a273567b3772
parent8d2c01288834de514aae8b6239f7b5145efdbdd1 (diff)
parent41d834903548424be7d0a60d3f1aac5b07280f22 (diff)
downloadayatana-ido-e6a410de267ce99eb74791a1460e63705ab00ace.tar.gz
ayatana-ido-e6a410de267ce99eb74791a1460e63705ab00ace.tar.bz2
ayatana-ido-e6a410de267ce99eb74791a1460e63705ab00ace.zip
Merge branch 'trism/fix-removable-a11y'
Attributes GH PR #33: https://github.com/AyatanaIndicators/ayatana-ido/pull/33
-rw-r--r--src/idoremovablemenuitem.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/idoremovablemenuitem.c b/src/idoremovablemenuitem.c
index 88d20ad..946ffb3 100644
--- a/src/idoremovablemenuitem.c
+++ b/src/idoremovablemenuitem.c
@@ -387,16 +387,14 @@ static void ido_removable_menu_item_init(IdoRemovableMenuItem *self)
gtk_widget_set_valign(pPrivate->pButton, GTK_ALIGN_CENTER);
gtk_widget_show(pPrivate->pButton);
- GtkWidget *pWidget = gtk_grid_new();
- GtkGrid *pGrid = GTK_GRID(pWidget);
-
- gtk_grid_attach(pGrid, pPrivate->pImage, 0, 0, 1, 1);
- gtk_grid_attach(pGrid, pPrivate->pLabel, 1, 0, 1, 1);
- gtk_grid_attach(pGrid, pPrivate->pButton, 2, 0, 1, 1);
+ GtkWidget *pBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
+ gtk_box_pack_start(GTK_BOX(pBox), pPrivate->pImage, FALSE, FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(pBox), pPrivate->pLabel, TRUE, TRUE, 0);
+ gtk_box_pack_start(GTK_BOX(pBox), pPrivate->pButton, FALSE, FALSE, 0);
g_object_set(pPrivate->pImage, "halign", GTK_ALIGN_START, "hexpand", FALSE, "valign", GTK_ALIGN_CENTER, "margin-right", 6, NULL);
g_object_set(pPrivate->pLabel, "halign", GTK_ALIGN_START, "hexpand", TRUE, "margin-right", 6, "valign", GTK_ALIGN_CENTER, NULL);
- gtk_widget_show (pWidget);
- gtk_container_add(GTK_CONTAINER(self), pWidget);
+ gtk_widget_show(pBox);
+ gtk_container_add(GTK_CONTAINER(self), pBox);
g_signal_connect(pPrivate->pLabel, "activate-link", G_CALLBACK(onActivateLink), self);
}