[MPlayer-cvslog] r38293 - in trunk/gui/dialog: equalizer.c preferences.c tools.c tools.h
ib
subversion at mplayerhq.hu
Mon Mar 1 16:05:38 EET 2021
Author: ib
Date: Mon Mar 1 16:05:38 2021
New Revision: 38293
Log:
Don't consider the help message texts to be text constants.
Add new functions gtkAddLabelColon() and gtkAddSpinButtonColon()
to add a colon.
Modified:
trunk/gui/dialog/equalizer.c
trunk/gui/dialog/preferences.c
trunk/gui/dialog/tools.c
trunk/gui/dialog/tools.h
Modified: trunk/gui/dialog/equalizer.c
==============================================================================
--- trunk/gui/dialog/equalizer.c Mon Mar 1 16:03:45 2021 (r38292)
+++ trunk/gui/dialog/equalizer.c Mon Mar 1 16:05:38 2021 (r38293)
@@ -383,19 +383,19 @@ static GtkWidget * CreateEqualizer( void
gtk_container_add( GTK_CONTAINER( Notebook ),table1 );
gtk_table_attach( GTK_TABLE( table1 ),
- gtkAddLabel( MSGTR_GUI_Contrast":",NULL ),
+ gtkAddLabelColon( MSGTR_GUI_Contrast,NULL ),
0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
gtk_table_attach( GTK_TABLE( table1 ),
- gtkAddLabel( MSGTR_GUI_Brightness":",NULL ),
+ gtkAddLabelColon( MSGTR_GUI_Brightness,NULL ),
0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
gtk_table_attach( GTK_TABLE( table1 ),
- gtkAddLabel( MSGTR_GUI_Hue":",NULL ),
+ gtkAddLabelColon( MSGTR_GUI_Hue,NULL ),
0,1,2,3,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
gtk_table_attach( GTK_TABLE( table1 ),
- gtkAddLabel( MSGTR_GUI_Saturation":",NULL ),
+ gtkAddLabelColon( MSGTR_GUI_Saturation,NULL ),
0,1,3,4,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
VContrastadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,1,0,0 ) );
@@ -607,27 +607,27 @@ GtkWidget * CreateEquConfig( void )
gtk_table_set_col_spacings( GTK_TABLE( table1 ),4 );
gtk_table_attach( GTK_TABLE( table1 ),
- gtkAddLabel( MSGTR_GUI_Channel1":",NULL ),
+ gtkAddLabelColon( MSGTR_GUI_Channel1,NULL ),
0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
gtk_table_attach( GTK_TABLE( table1 ),
- gtkAddLabel( MSGTR_GUI_Channel2":",NULL ),
+ gtkAddLabelColon( MSGTR_GUI_Channel2,NULL ),
0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
gtk_table_attach( GTK_TABLE( table1 ),
- gtkAddLabel( MSGTR_GUI_Channel3":",NULL ),
+ gtkAddLabelColon( MSGTR_GUI_Channel3,NULL ),
0,1,2,3,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
gtk_table_attach( GTK_TABLE( table1 ),
- gtkAddLabel( MSGTR_GUI_Channel4":",NULL ),
+ gtkAddLabelColon( MSGTR_GUI_Channel4,NULL ),
0,1,3,4,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
gtk_table_attach( GTK_TABLE( table1 ),
- gtkAddLabel( MSGTR_GUI_Channel5":",NULL ),
+ gtkAddLabelColon( MSGTR_GUI_Channel5,NULL ),
0,1,4,5,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
gtk_table_attach( GTK_TABLE( table1 ),
- gtkAddLabel( MSGTR_GUI_Channel6":",NULL ),
+ gtkAddLabelColon( MSGTR_GUI_Channel6,NULL ),
0,1,5,6,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
CBChannel1=gtkAddCombo( NULL );
Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c Mon Mar 1 16:03:45 2021 (r38292)
+++ trunk/gui/dialog/preferences.c Mon Mar 1 16:05:38 2021 (r38293)
@@ -695,14 +695,14 @@ static GtkWidget * CreatePreferences( vo
gtkAddHSeparator( vbox3 );
CBExtraStereo=gtkAddCheckButton( MSGTR_GUI_EnableExtraStereo,vbox3 );
hbox8=gtkAddHBox( vbox3,1 );
- /*label=*/gtkAddLabel( MSGTR_GUI_Coefficient":",hbox8 );
+ /*label=*/gtkAddLabelColon( MSGTR_GUI_Coefficient,hbox8 );
// gtk_misc_set_padding( GTK_MISC( label ),20,0 );
HSExtraStereoMuladj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-10,10,0.1,0,0 ) );
HSExtraStereoMul=gtkAddHScale( HSExtraStereoMuladj,hbox8,1 );
gtkAddHSeparator( vbox3 );
hbox8=gtkAddHBox( vbox3,1 );
- gtkAddLabel( MSGTR_GUI_AudioDelay":",hbox8 );
+ gtkAddLabelColon( MSGTR_GUI_AudioDelay,hbox8 );
HSAudioDelayadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-100,100,0.1,0,0 ) );
HSAudioDelay=gtkAddHScale( HSAudioDelayadj,hbox8,1 );
@@ -751,10 +751,10 @@ static GtkWidget * CreatePreferences( vo
gtk_widget_show( table1 );
gtk_box_pack_start( GTK_BOX( vbox5 ),table1,FALSE,FALSE,0 );
- label=gtkAddLabel( MSGTR_GUI_PanAndScan":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_PanAndScan,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
- label=gtkAddLabel( MSGTR_GUI_FrameRate":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_FrameRate,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
HSPanscanadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,1,0.1,0,0 ) );
@@ -790,7 +790,7 @@ static GtkWidget * CreatePreferences( vo
#if 0
hbox4=gtkAddHBox( vbox7,1 );
- gtkAddLabel( MSGTR_GUI_Subtitle":",hbox4 );
+ gtkAddLabelColon( MSGTR_GUI_Subtitle,hbox4 );
ESubtitleName=gtk_entry_new();
gtk_widget_show( ESubtitleName );
@@ -807,16 +807,16 @@ static GtkWidget * CreatePreferences( vo
gtk_widget_show( table1 );
gtk_box_pack_start( GTK_BOX( vbox8 ),table1,FALSE,FALSE,0 );
- label=gtkAddLabel( MSGTR_GUI_Delay":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_Delay,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
- label=gtkAddLabel( MSGTR_GUI_Position":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_Position,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
- label=gtkAddLabel( MSGTR_GUI_FrameRate":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_FrameRate,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,2,3,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
- label=gtkAddLabel( MSGTR_GUI_Encoding":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_Encoding,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,3,4,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_FILL ),0,0 );
HSSubDelayadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,-10.0,10,0.1,0,0 ) );
@@ -890,13 +890,13 @@ static GtkWidget * CreatePreferences( vo
hbox91=gtk_hbox_new( FALSE,0 );
gtk_box_pack_start( GTK_BOX( hbox9 ),hbox91,TRUE,FALSE,0 );
gtk_widget_show( hbox91 );
- SBASSTopMargin=gtkAddSpinButton( MSGTR_GUI_Top":",
+ SBASSTopMargin=gtkAddSpinButtonColon( MSGTR_GUI_Top,
(GtkAdjustment *)gtk_adjustment_new(0,0,2000,1,8,0),hbox91 );
hbox92=gtk_hbox_new( FALSE,0 );
gtk_box_pack_start( GTK_BOX( hbox9 ),hbox92,TRUE,FALSE,0 );
gtk_widget_show( hbox92 );
- SBASSBottomMargin=gtkAddSpinButton( MSGTR_GUI_Bottom":",
+ SBASSBottomMargin=gtkAddSpinButtonColon( MSGTR_GUI_Bottom,
(GtkAdjustment *)gtk_adjustment_new(0,0,2000,1,8,0),hbox92 );
label=gtkAddLabel( MSGTR_GUI_OSD_Subtitles,NULL );
@@ -910,7 +910,7 @@ static GtkWidget * CreatePreferences( vo
gtkAddFrame( NULL,GTK_SHADOW_ETCHED_OUT,vbox601,0 ),1 ),0 );
hbox6=gtkAddHBox( vbox603,1 );
- gtkAddLabel( MSGTR_GUI_Font":",hbox6 );
+ gtkAddLabelColon( MSGTR_GUI_Font,hbox6 );
prEFontName=gtk_entry_new();
gtk_widget_show( prEFontName );
gtk_box_pack_start( GTK_BOX( hbox6 ),prEFontName,TRUE,TRUE,0 );
@@ -923,7 +923,7 @@ static GtkWidget * CreatePreferences( vo
gtk_widget_show( table1 );
gtk_box_pack_start( GTK_BOX( vbox603 ),table1,FALSE,FALSE,0 );
- label=gtkAddLabel( MSGTR_GUI_ScaleMode":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_ScaleMode,NULL );
gtk_misc_set_alignment( GTK_MISC( label ),0,0 );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( GTK_FILL ),0,0 );
@@ -935,7 +935,7 @@ static GtkWidget * CreatePreferences( vo
RBFontAutoScaleWidth=gtkAddRadioButton( MSGTR_GUI_ScaleMovieWidth,&Font_group,vbox11 );
RBFontAutoScaleDiagonal=gtkAddRadioButton( MSGTR_GUI_ScaleMovieDiagonal,&Font_group,vbox11 );
- label=gtkAddLabel( MSGTR_GUI_Encoding":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_Encoding,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
CBFontEncoding=gtk_combo_new();
@@ -972,28 +972,28 @@ static GtkWidget * CreatePreferences( vo
gtk_entry_set_editable( GTK_ENTRY( EFontEncoding ),FALSE );
gtk_widget_show( EFontEncoding );
- label=gtkAddLabel( MSGTR_GUI_Blur":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_Blur,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,2,3,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
HSFontBluradj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,100,0.1,0,0 ) );
HSFontBlur=gtkAddHScale( HSFontBluradj,NULL,1 );
gtk_table_attach( GTK_TABLE( table1 ),HSFontBlur,1,2,2,3,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
- label=gtkAddLabel( MSGTR_GUI_Outline":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_Outline,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,3,4,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
HSFontOutLineadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,100,0.1,0,0 ) );
HSFontOutLine=gtkAddHScale( HSFontOutLineadj,NULL,1 );
gtk_table_attach( GTK_TABLE( table1 ),HSFontOutLine,1,2,3,4,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
- label=gtkAddLabel( MSGTR_GUI_SizeSubtitles":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_SizeSubtitles,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,4,5,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
HSFontTextScaleadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,100,0.1,0,0 ) );
HSFontTextScale=gtkAddHScale( HSFontTextScaleadj,NULL,1 );
gtk_table_attach( GTK_TABLE( table1 ),HSFontTextScale,1,2,4,5,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
- label=gtkAddLabel( MSGTR_GUI_SizeOSD":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_SizeOSD,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,5,6,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
HSFontOSDScaleadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,100,0.1,0,0 ) );
@@ -1001,7 +1001,7 @@ static GtkWidget * CreatePreferences( vo
gtk_table_attach( GTK_TABLE( table1 ),HSFontOSDScale,1,2,5,6,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
#else
hbox7=gtkAddHBox( vbox603,1 );
- gtkAddLabel( MSGTR_GUI_Outline":",hbox7 );
+ gtkAddLabelColon( MSGTR_GUI_Outline,hbox7 );
HSFontFactoradj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,10,0.05,0,0 ) );
HSFontFactor=gtkAddHScale( HSFontFactoradj,hbox7,2 );
#endif
@@ -1026,7 +1026,7 @@ static GtkWidget * CreatePreferences( vo
hbox5=gtkAddHBox( vbox604,1 );
- gtkAddLabel( MSGTR_GUI_CodecFamilyVideo":",hbox5 );
+ gtkAddLabelColon( MSGTR_GUI_CodecFamilyVideo,hbox5 );
CBVFM=gtk_combo_new();
gtk_widget_show( CBVFM );
@@ -1038,7 +1038,7 @@ static GtkWidget * CreatePreferences( vo
hbox5=gtkAddHBox( vbox604,1 );
- gtkAddLabel( MSGTR_GUI_CodecFamilyAudio":",hbox5 );
+ gtkAddLabelColon( MSGTR_GUI_CodecFamilyAudio,hbox5 );
CBAFM=gtk_combo_new();
gtk_widget_show( CBAFM );
@@ -1063,7 +1063,7 @@ static GtkWidget * CreatePreferences( vo
hbox5=gtkAddHBox( vbox602,1 );
- gtkAddLabel( MSGTR_GUI_MaximumUsageSpareCPU":",hbox5 );
+ gtkAddLabelColon( MSGTR_GUI_MaximumUsageSpareCPU,hbox5 );
if ( guiInfo.sh_video && guiInfo.Playing ) HSPPQualityadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,get_video_quality_max( guiInfo.sh_video ),1,0,0 ) );
else HSPPQualityadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,100,1,0,0 ) );
@@ -1077,7 +1077,7 @@ static GtkWidget * CreatePreferences( vo
hbox5=gtkAddHBox( vbox602,1 );
- gtkAddLabel( MSGTR_GUI_CacheSize":",hbox5 );
+ gtkAddLabelColon( MSGTR_GUI_CacheSize,hbox5 );
SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( gtkCacheSize,32,0x7fffffff,1,32,0 ) );
SBCache=gtk_spin_button_new( GTK_ADJUSTMENT( SBCacheadj ),1,0 );
@@ -1101,7 +1101,7 @@ static GtkWidget * CreatePreferences( vo
CBAutoSync=gtkAddCheckButton( MSGTR_GUI_EnableAutomaticAVSync,vbox602 );
hbox5=gtkAddHBox( vbox602,1 );
- gtkAddLabel( MSGTR_GUI_SyncValue":",hbox5 );
+ gtkAddLabelColon( MSGTR_GUI_SyncValue,hbox5 );
SBAutoSyncadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,10000,1,10,0 ) );
SBAutoSync=gtk_spin_button_new( GTK_ADJUSTMENT( SBAutoSyncadj ),1,0 );
gtk_widget_show( SBAutoSync );
@@ -1113,13 +1113,13 @@ static GtkWidget * CreatePreferences( vo
gtk_widget_show( table1 );
gtk_box_pack_start( GTK_BOX( vbox602 ),table1,FALSE,FALSE,0 );
- label=gtkAddLabel( MSGTR_GUI_DeviceDVD":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_DeviceDVD,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,0,1,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
prEDVDDevice=gtk_entry_new();
gtk_widget_show( prEDVDDevice );
gtk_table_attach( GTK_TABLE( table1 ),prEDVDDevice,1,2,0,1,(GtkAttachOptions)( GTK_EXPAND | GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
- label=gtkAddLabel( MSGTR_GUI_DeviceCDROM":",NULL );
+ label=gtkAddLabelColon( MSGTR_GUI_DeviceCDROM,NULL );
gtk_table_attach( GTK_TABLE( table1 ),label,0,1,1,2,(GtkAttachOptions)( GTK_FILL ),(GtkAttachOptions)( 0 ),0,0 );
prECDRomDevice=gtk_entry_new();
gtk_widget_show( prECDRomDevice );
@@ -1690,7 +1690,7 @@ static GtkWidget *CreateAudioConfig( voi
gtk_widget_show(table);
gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0);
- label = gtkAddLabel(MSGTR_GUI_Device":", NULL);
+ label = gtkAddLabelColon(MSGTR_GUI_Device, NULL);
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(0), 0, 0);
CBAudioDevice = gtkAddCombo(NULL);
@@ -1719,7 +1719,7 @@ static GtkWidget *CreateAudioConfig( voi
CEAudioDevice = GTK_COMBO(CBAudioDevice)->entry;
gtk_widget_show(CEAudioDevice);
- label = gtkAddLabel(MSGTR_GUI_Mixer":", NULL);
+ label = gtkAddLabelColon(MSGTR_GUI_Mixer, NULL);
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(0), 0, 0);
CBAudioMixer = gtkAddCombo(NULL);
@@ -1740,7 +1740,7 @@ static GtkWidget *CreateAudioConfig( voi
CEAudioMixer = GTK_COMBO(CBAudioMixer)->entry;
gtk_widget_show(CEAudioMixer);
- label = gtkAddLabel(MSGTR_GUI_MixerChannel":", NULL);
+ label = gtkAddLabelColon(MSGTR_GUI_MixerChannel, NULL);
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3, (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(0), 0, 0);
CBAudioMixerChannel = gtkAddCombo(NULL);
@@ -1880,7 +1880,7 @@ GtkWidget * CreateDXR3Config( void )
vbox1=gtkAddVBox( gtkAddDialogFrame( DXR3Config ),0 );
vbox2=gtkAddVBox( vbox1,0 );
hbox1=gtkAddHBox( vbox2,1 );
- gtkAddLabel( MSGTR_GUI_Device":",hbox1 );
+ gtkAddLabelColon( MSGTR_GUI_Device,hbox1 );
CBDevice=gtkAddCombo( hbox1 );
@@ -1898,7 +1898,7 @@ GtkWidget * CreateDXR3Config( void )
gtkAddHSeparator( vbox2 );
vbox3=gtkAddVBox( vbox2,0 );
- gtkAddLabel( MSGTR_GUI_VideoEncoder":",vbox3 );
+ gtkAddLabelColon( MSGTR_GUI_VideoEncoder,vbox3 );
RBVNone=gtkAddRadioButton( MSGTR_GUI_None,&VEncoder_group,vbox3 );
RBVLavc=gtkAddRadioButton( MSGTR_GUI_Lavc,&VEncoder_group,vbox3 );
Modified: trunk/gui/dialog/tools.c
==============================================================================
--- trunk/gui/dialog/tools.c Mon Mar 1 16:03:45 2021 (r38292)
+++ trunk/gui/dialog/tools.c Mon Mar 1 16:05:38 2021 (r38293)
@@ -89,6 +89,18 @@ GtkWidget * gtkAddLabel( const char * ti
return label;
}
+GtkWidget * gtkAddLabelColon( const char * title,GtkWidget * parent )
+{
+ GtkWidget * label;
+ gchar * text;
+
+ text = g_strconcat( title,":",NULL );
+ label = gtkAddLabel( text,parent );
+ g_free( text );
+
+ return label;
+}
+
GtkWidget * gtkAddVBox( GtkWidget * parent,int type )
{
GtkWidget * vbox;
@@ -148,6 +160,18 @@ GtkWidget * gtkAddSpinButton( const char
return SB;
}
+GtkWidget * gtkAddSpinButtonColon( const char * title,GtkAdjustment * adj,GtkWidget * parent )
+{
+ GtkWidget * button;
+ gchar * text;
+
+ text = g_strconcat( title,":",NULL );
+ button = gtkAddSpinButton( text,adj,parent );
+ g_free( text );
+
+ return button;
+}
+
GtkWidget * gtkAddButton( const char * title,GtkWidget * parent )
{
GtkWidget * B;
Modified: trunk/gui/dialog/tools.h
==============================================================================
--- trunk/gui/dialog/tools.h Mon Mar 1 16:03:45 2021 (r38292)
+++ trunk/gui/dialog/tools.h Mon Mar 1 16:05:38 2021 (r38293)
@@ -25,11 +25,13 @@
GtkWidget * gtkAddDialogFrame( GtkWidget * parent );
GtkWidget * gtkAddFrame( const char * title, int type, GtkWidget * parent, int add );
GtkWidget * gtkAddLabel( const char * title, GtkWidget * parent );
+GtkWidget * gtkAddLabelColon( const char * title, GtkWidget * parent );
GtkWidget * gtkAddVBox( GtkWidget * parent, int type );
GtkWidget * gtkAddHBox( GtkWidget * parent, int type );
GtkWidget * gtkAddCheckButton( const char * title, GtkWidget * parent );
GtkWidget * gtkAddRadioButton( const char * title, GSList ** group, GtkWidget * parent );
GtkWidget * gtkAddSpinButton( const char * title, GtkAdjustment * adj, GtkWidget * parent );
+GtkWidget * gtkAddSpinButtonColon( const char * title, GtkAdjustment * adj, GtkWidget * parent );
GtkWidget * gtkAddButton( const char * title, GtkWidget * parent );
GtkWidget * gtkAddHSeparator( GtkWidget * parent );
GtkWidget * gtkAddHButtonBox( GtkWidget * parent );
More information about the MPlayer-cvslog
mailing list