[MPlayer-cvslog] r38046 - trunk/gui/dialog/menu.c
ib
subversion at mplayerhq.hu
Wed Apr 4 19:40:38 EEST 2018
Author: ib
Date: Wed Apr 4 19:40:38 2018
New Revision: 38046
Log:
Enable an adjustable spacing between pixmap and label.
Use \b as first character of a label to get
less spacing between pixmap and label.
Modified:
trunk/gui/dialog/menu.c
Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c Wed Apr 4 19:29:06 2018 (r38045)
+++ trunk/gui/dialog/menu.c Wed Apr 4 19:40:38 2018 (r38046)
@@ -132,10 +132,17 @@ static GtkWidget * AddMenuCheckItem(GtkW
Pixmap = gtk_pixmap_new (PixmapIcon, MaskIcon);
gdk_pixmap_unref (PixmapIcon);
+ hbox = gtk_hbox_new (FALSE, 8);
+
+ if ( *label == '\b' )
+ {
+ gtk_box_set_spacing (GTK_BOX (hbox), 4);
+ label++;
+ }
+
Item=gtk_check_menu_item_new();
Label = gtk_label_new (label);
- hbox = gtk_hbox_new (FALSE, 8);
gtk_box_pack_start (GTK_BOX (hbox), Pixmap, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), Label, FALSE, FALSE, 0);
gtk_container_add (GTK_CONTAINER (Item), hbox);
More information about the MPlayer-cvslog
mailing list