[libwnck/wip/muktupavels/gtk4: 107/109] wnck-image-menu-item: remove expand, fill and padding
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/muktupavels/gtk4: 107/109] wnck-image-menu-item: remove expand, fill and padding
- Date: Thu, 13 May 2021 19:30:54 +0000 (UTC)
commit 5ace12bd69e6e9128f8aa0db6a66e182c83bae05
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun May 21 02:30:51 2017 +0300
wnck-image-menu-item: remove expand, fill and padding
libwnck/wnck-image-menu-item.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libwnck/wnck-image-menu-item.c b/libwnck/wnck-image-menu-item.c
index bcba6a0..f73a22d 100644
--- a/libwnck/wnck-image-menu-item.c
+++ b/libwnck/wnck-image-menu-item.c
@@ -192,10 +192,12 @@ wnck_image_menu_item_init (WnckImageMenuItem *item)
gtk_widget_show (item->box);
item->image = gtk_image_new ();
- gtk_box_pack_start (GTK_BOX (item->box), item->image, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (item->box), item->image);
item->accel_label = gtk_accel_label_new ("");
- gtk_box_pack_end (GTK_BOX (item->box), item->accel_label, TRUE, TRUE, 0);
+ gtk_box_pack_end (GTK_BOX (item->box), item->accel_label);
+ gtk_widget_set_hexpand (item->accel_label, TRUE);
+ gtk_widget_set_halign (item->accel_label, GTK_ALIGN_FILL);
gtk_label_set_xalign (GTK_LABEL (item->accel_label), 0.0);
gtk_widget_show (item->accel_label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]