Mercurial > mplayer.hg
comparison gui/dialog/playlist.c @ 36694:eed2fb870f43
Rename symbolic constants of GUI help message texts.
Create a kind of GUI namespace and don't add place or kind of
usage to the name unless it's advantageous.
This reduces the amount of definitions as well.
Arrange them alphabetically.
author | ib |
---|---|
date | Wed, 05 Feb 2014 16:39:38 +0000 |
parents | 32a4d8f63ae3 |
children | e788bcd9d49b |
comparison
equal
deleted
inserted
replaced
36693:44334c832149 | 36694:eed2fb870f43 |
---|---|
444 | 444 |
445 accel_group=gtk_accel_group_new(); | 445 accel_group=gtk_accel_group_new(); |
446 | 446 |
447 Playlist=gtk_window_new( GTK_WINDOW_TOPLEVEL ); | 447 Playlist=gtk_window_new( GTK_WINDOW_TOPLEVEL ); |
448 gtk_widget_set_usize( Playlist,512,384 ); | 448 gtk_widget_set_usize( Playlist,512,384 ); |
449 gtk_window_set_title( GTK_WINDOW( Playlist ),MSGTR_PlayList ); | 449 gtk_window_set_title( GTK_WINDOW( Playlist ),MSGTR_GUI_Playlist ); |
450 gtk_window_set_position( GTK_WINDOW( Playlist ),GTK_WIN_POS_CENTER ); | 450 gtk_window_set_position( GTK_WINDOW( Playlist ),GTK_WIN_POS_CENTER ); |
451 gtk_window_set_wmclass( GTK_WINDOW( Playlist ),"Playlist",MPlayer ); | 451 gtk_window_set_wmclass( GTK_WINDOW( Playlist ),"Playlist",MPlayer ); |
452 | 452 |
453 gtk_widget_realize( Playlist ); | 453 gtk_widget_realize( Playlist ); |
454 gtkAddIcon( Playlist ); | 454 gtkAddIcon( Playlist ); |
489 | 489 |
490 if ( last && last->path ) old_path = strdup( last->path ); | 490 if ( last && last->path ) old_path = strdup( last->path ); |
491 else if ( fsHistory[0] ) old_path = strdup( cfg_old_filename_from_utf8( fsHistory[0] ) ); | 491 else if ( fsHistory[0] ) old_path = strdup( cfg_old_filename_from_utf8( fsHistory[0] ) ); |
492 | 492 |
493 gtk_clist_set_column_widget( GTK_CLIST( CTDirTree ),0, | 493 gtk_clist_set_column_widget( GTK_CLIST( CTDirTree ),0, |
494 gtkAddLabel( MSGTR_PLAYLIST_DirectoryTree,NULL ) ); | 494 gtkAddLabel( MSGTR_GUI_DirectoryTree,NULL ) ); |
495 | 495 |
496 gtk_clist_column_title_passive( GTK_CLIST( CTDirTree ),0 ); | 496 gtk_clist_column_title_passive( GTK_CLIST( CTDirTree ),0 ); |
497 | 497 |
498 vbox2=gtkAddVBox( | 498 vbox2=gtkAddVBox( |
499 gtkAddFrame( NULL,1,hbox1,1 ),0 ); | 499 gtkAddFrame( NULL,1,hbox1,1 ),0 ); |
511 gtk_clist_set_selection_mode( GTK_CLIST( CLFiles ),GTK_SELECTION_EXTENDED ); | 511 gtk_clist_set_selection_mode( GTK_CLIST( CLFiles ),GTK_SELECTION_EXTENDED ); |
512 gtk_clist_column_titles_show( GTK_CLIST( CLFiles ) ); | 512 gtk_clist_column_titles_show( GTK_CLIST( CLFiles ) ); |
513 gtk_clist_set_shadow_type( GTK_CLIST( CLFiles ),GTK_SHADOW_NONE ); | 513 gtk_clist_set_shadow_type( GTK_CLIST( CLFiles ),GTK_SHADOW_NONE ); |
514 | 514 |
515 gtk_clist_set_column_widget( GTK_CLIST( CLFiles ),0, | 515 gtk_clist_set_column_widget( GTK_CLIST( CLFiles ),0, |
516 gtkAddLabel( MSGTR_PLAYLIST_Files,NULL ) ); | 516 gtkAddLabel( MSGTR_GUI_Files,NULL ) ); |
517 | 517 |
518 gtk_clist_column_title_passive( GTK_CLIST( CLFiles ),0 ); | 518 gtk_clist_column_title_passive( GTK_CLIST( CLFiles ),0 ); |
519 | 519 |
520 gtkAddHSeparator( vbox2 ); | 520 gtkAddHSeparator( vbox2 ); |
521 | 521 |
534 gtk_clist_set_selection_mode( GTK_CLIST( CLSelected ),GTK_SELECTION_MULTIPLE ); | 534 gtk_clist_set_selection_mode( GTK_CLIST( CLSelected ),GTK_SELECTION_MULTIPLE ); |
535 gtk_clist_column_titles_show( GTK_CLIST( CLSelected ) ); | 535 gtk_clist_column_titles_show( GTK_CLIST( CLSelected ) ); |
536 gtk_clist_set_shadow_type( GTK_CLIST( CLSelected ),GTK_SHADOW_NONE ); | 536 gtk_clist_set_shadow_type( GTK_CLIST( CLSelected ),GTK_SHADOW_NONE ); |
537 | 537 |
538 gtk_clist_set_column_widget( GTK_CLIST( CLSelected ),0, | 538 gtk_clist_set_column_widget( GTK_CLIST( CLSelected ),0, |
539 gtkAddLabel( MSGTR_PLAYLIST_Selected,NULL ) ); | 539 gtkAddLabel( MSGTR_GUI_SelectedFiles,NULL ) ); |
540 | 540 |
541 gtk_clist_set_column_widget( GTK_CLIST( CLSelected ),1, | 541 gtk_clist_set_column_widget( GTK_CLIST( CLSelected ),1, |
542 gtkAddLabel( MSGTR_PLAYLIST_Path,NULL ) ); | 542 gtkAddLabel( MSGTR_GUI_Directory,NULL ) ); |
543 | 543 |
544 gtk_clist_column_title_passive( GTK_CLIST( CLSelected ),0 ); | 544 gtk_clist_column_title_passive( GTK_CLIST( CLSelected ),0 ); |
545 | 545 |
546 gtkAddHSeparator( vbox1 ); | 546 gtkAddHSeparator( vbox1 ); |
547 | 547 |
548 hbuttonbox1=gtkAddHButtonBox( vbox1 ); | 548 hbuttonbox1=gtkAddHButtonBox( vbox1 ); |
549 gtk_button_box_set_layout( GTK_BUTTON_BOX( hbuttonbox1 ),GTK_BUTTONBOX_END ); | 549 gtk_button_box_set_layout( GTK_BUTTON_BOX( hbuttonbox1 ),GTK_BUTTONBOX_END ); |
550 gtk_button_box_set_spacing( GTK_BUTTON_BOX( hbuttonbox1 ),10 ); | 550 gtk_button_box_set_spacing( GTK_BUTTON_BOX( hbuttonbox1 ),10 ); |
551 | 551 |
552 Add=gtkAddButton( MSGTR_Add,hbuttonbox1 ); | 552 Add=gtkAddButton( MSGTR_GUI_Add,hbuttonbox1 ); |
553 Remove=gtkAddButton( MSGTR_Remove,hbuttonbox1 ); | 553 Remove=gtkAddButton( MSGTR_GUI_Remove,hbuttonbox1 ); |
554 Ok=gtkAddButton( MSGTR_Ok,hbuttonbox1 ); | 554 Ok=gtkAddButton( MSGTR_GUI_Ok,hbuttonbox1 ); |
555 Cancel=gtkAddButton( MSGTR_Cancel,hbuttonbox1 ); | 555 Cancel=gtkAddButton( MSGTR_GUI_Cancel,hbuttonbox1 ); |
556 | 556 |
557 gtk_widget_add_accelerator( Cancel,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE ); | 557 gtk_widget_add_accelerator( Cancel,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE ); |
558 | 558 |
559 gtk_signal_connect( GTK_OBJECT( Playlist ),"destroy",GTK_SIGNAL_FUNC( gtk_widget_destroyed ),&Playlist ); | 559 gtk_signal_connect( GTK_OBJECT( Playlist ),"destroy",GTK_SIGNAL_FUNC( gtk_widget_destroyed ),&Playlist ); |
560 | 560 |