diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-10-25 00:05:14 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-10-25 00:05:14 +0000 |
commit | 18beb11c3de796d9767406125ce1d62d918a071e (patch) | |
tree | 7ed51239290ac40dd11c6557626c4a39ad425983 /Gui/mplayer/gtk/common.c | |
parent | b7f39d6b1600038aebcb3e8443fdbd4eef1072b0 (diff) | |
download | mpv-18beb11c3de796d9767406125ce1d62d918a071e.tar.bz2 mpv-18beb11c3de796d9767406125ce1d62d918a071e.tar.xz |
Add ASS subtitle rendering options to gui.
Patch by Piotr Kaczuba <pepe at attika dot ath dot cx>.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20440 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/gtk/common.c')
-rw-r--r-- | Gui/mplayer/gtk/common.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Gui/mplayer/gtk/common.c b/Gui/mplayer/gtk/common.c index d3e0615a6c..7a21969e2f 100644 --- a/Gui/mplayer/gtk/common.c +++ b/Gui/mplayer/gtk/common.c @@ -97,6 +97,21 @@ GtkWidget * AddRadioButton( const char * title,GSList ** group,GtkWidget * paren return RB; } +GtkWidget * AddSpinButton( const char * title,GtkAdjustment * adj,GtkWidget * parent ) +{ + GtkWidget * SB; + GtkWidget * label; + label=gtk_label_new( title ); + gtk_misc_set_alignment( GTK_MISC( label ),0,0.5 ); + gtk_box_pack_start( GTK_BOX( parent ),label,FALSE,FALSE,0 ); + gtk_widget_show( label ); + SB=gtk_spin_button_new( adj,0,0 ); + gtk_widget_set_name( SB,"SB" ); + gtk_box_pack_start( GTK_BOX( parent ),SB,FALSE,FALSE,0 ); + gtk_widget_show( SB ); + return SB; +} + GtkWidget * AddButton( const char * title,GtkWidget * parent ) { GtkWidget * B; |