2001-11-14 16:04:25 +00:00
|
|
|
|
2007-03-16 00:00:13 +00:00
|
|
|
#include "app.h"
|
|
|
|
#include "config.h"
|
|
|
|
#include "help_mp.h"
|
2001-11-14 16:04:25 +00:00
|
|
|
|
2002-07-03 08:55:26 +00:00
|
|
|
#include "mplayer/pixmaps/about.xpm"
|
2001-11-14 16:04:25 +00:00
|
|
|
#include "../widgets.h"
|
|
|
|
#include "about.h"
|
2002-11-27 22:48:56 +00:00
|
|
|
#include "common.h"
|
2001-11-14 16:04:25 +00:00
|
|
|
|
2002-11-27 22:48:56 +00:00
|
|
|
GtkWidget * About = NULL;
|
2002-05-20 13:56:16 +00:00
|
|
|
|
|
|
|
void ShowAboutBox( void )
|
|
|
|
{
|
2002-11-27 22:48:56 +00:00
|
|
|
if ( About ) gtkActive( About );
|
|
|
|
else About=create_About();
|
|
|
|
gtk_widget_show( About );
|
2002-05-20 13:56:16 +00:00
|
|
|
}
|
2001-11-14 16:04:25 +00:00
|
|
|
|
2003-01-02 15:48:29 +00:00
|
|
|
void abWidgetDestroy( GtkWidget * widget,GtkWidget ** widget_pointer )
|
|
|
|
{ WidgetDestroy( NULL,&About ); }
|
|
|
|
|
2001-11-14 16:04:25 +00:00
|
|
|
GtkWidget * create_About( void )
|
|
|
|
{
|
2002-11-27 22:48:56 +00:00
|
|
|
GtkWidget * vbox;
|
2001-11-14 16:04:25 +00:00
|
|
|
GtkWidget * pixmap1;
|
|
|
|
GtkWidget * scrolledwindow1;
|
|
|
|
GtkWidget * AboutText;
|
|
|
|
GtkWidget * Ok;
|
|
|
|
|
2005-08-17 18:41:15 +00:00
|
|
|
#ifdef HAVE_GTK2_GUI
|
|
|
|
GtkTextBuffer * AboutTextBuffer;
|
|
|
|
GtkTextIter iter;
|
|
|
|
#endif //HAVE_GTK2_GUI
|
|
|
|
|
2001-11-14 16:04:25 +00:00
|
|
|
GtkStyle * pixmapstyle;
|
2001-12-19 16:53:34 +00:00
|
|
|
GdkPixmap * pixmapwid;
|
2001-11-14 16:04:25 +00:00
|
|
|
GdkBitmap * mask;
|
|
|
|
|
|
|
|
GtkAccelGroup * accel_group;
|
|
|
|
|
2002-05-20 13:56:16 +00:00
|
|
|
accel_group=gtk_accel_group_new();
|
2001-11-14 16:04:25 +00:00
|
|
|
|
|
|
|
About=gtk_window_new( GTK_WINDOW_TOPLEVEL );
|
|
|
|
gtk_widget_set_name( About,MSGTR_About );
|
|
|
|
gtk_object_set_data( GTK_OBJECT( About ),MSGTR_About,About );
|
|
|
|
gtk_widget_set_usize( About,340,415 );
|
|
|
|
gtk_window_set_title( GTK_WINDOW( About ),MSGTR_About );
|
|
|
|
gtk_window_set_position( GTK_WINDOW( About ),GTK_WIN_POS_CENTER );
|
|
|
|
gtk_window_set_policy( GTK_WINDOW( About ),TRUE,FALSE,FALSE );
|
2002-11-27 22:48:56 +00:00
|
|
|
gtk_window_set_wmclass( GTK_WINDOW( About ),"About","MPlayer" );
|
2002-07-05 23:47:00 +00:00
|
|
|
|
|
|
|
gtk_widget_realize( About );
|
|
|
|
gtkAddIcon( About );
|
2002-11-27 22:48:56 +00:00
|
|
|
|
|
|
|
vbox=AddVBox( AddDialogFrame( About ),0 );
|
2001-11-14 16:04:25 +00:00
|
|
|
|
|
|
|
pixmapstyle=gtk_widget_get_style( About );
|
2001-12-19 16:53:34 +00:00
|
|
|
pixmapwid=gdk_pixmap_colormap_create_from_xpm_d( About->window,gdk_colormap_get_system(),&mask,&pixmapstyle->bg[GTK_STATE_NORMAL],about_xpm );
|
2001-11-14 16:04:25 +00:00
|
|
|
pixmap1=gtk_pixmap_new( pixmapwid,mask );
|
|
|
|
|
|
|
|
gtk_widget_set_name( pixmap1,"pixmap1" );
|
|
|
|
gtk_widget_show( pixmap1 );
|
2002-11-27 22:48:56 +00:00
|
|
|
gtk_box_pack_start( GTK_BOX( vbox ),pixmap1,FALSE,FALSE,0 );
|
2001-11-14 16:04:25 +00:00
|
|
|
gtk_widget_set_usize( pixmap1,-2,174 );
|
|
|
|
|
2002-11-27 22:48:56 +00:00
|
|
|
AddHSeparator( vbox );
|
2001-11-14 16:04:25 +00:00
|
|
|
|
|
|
|
scrolledwindow1=gtk_scrolled_window_new( NULL,NULL );
|
|
|
|
gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" );
|
|
|
|
gtk_widget_show( scrolledwindow1 );
|
2002-11-27 22:48:56 +00:00
|
|
|
gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 );
|
2001-11-14 16:04:25 +00:00
|
|
|
gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC );
|
|
|
|
|
2005-08-17 18:41:15 +00:00
|
|
|
#ifdef HAVE_GTK2_GUI
|
|
|
|
AboutText = gtk_text_view_new();
|
2005-12-04 15:56:40 +00:00
|
|
|
gtk_text_view_set_editable(GTK_TEXT_VIEW(AboutText), FALSE);
|
|
|
|
gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(AboutText), FALSE);
|
2005-08-17 18:41:15 +00:00
|
|
|
AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText));
|
|
|
|
gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0);
|
|
|
|
#else
|
2001-11-14 16:04:25 +00:00
|
|
|
AboutText=gtk_text_new( NULL,NULL );
|
2005-12-04 15:56:40 +00:00
|
|
|
gtk_text_set_editable(GTK_TEXT(AboutText), FALSE);
|
2005-08-17 18:41:15 +00:00
|
|
|
#endif
|
2001-11-14 16:04:25 +00:00
|
|
|
gtk_widget_set_name( AboutText,"AboutText" );
|
|
|
|
gtk_widget_show( AboutText );
|
|
|
|
gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText );
|
2005-08-17 18:41:15 +00:00
|
|
|
#ifdef HAVE_GTK2_GUI
|
|
|
|
gtk_text_buffer_insert (AboutTextBuffer, &iter,
|
|
|
|
#else
|
2001-11-14 16:04:25 +00:00
|
|
|
gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL,
|
2005-08-17 18:41:15 +00:00
|
|
|
#endif
|
2003-02-01 08:37:20 +00:00
|
|
|
"\n"
|
|
|
|
MSGTR_ABOUT_UHU
|
|
|
|
" (http://www.uhulinux.hu/)\n"
|
|
|
|
"\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
MSGTR_ABOUT_Contributors
|
2003-02-01 08:37:20 +00:00
|
|
|
"\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Ackermann, Andreas\n"
|
|
|
|
" * adland\n"
|
|
|
|
" * Anholt, Eric\n"
|
|
|
|
" * Ashberg, Folke\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Balatoni, Dénes\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Barat, Zsolt\n"
|
|
|
|
" * Barbato, Luca\n"
|
|
|
|
" * Baryshkov, Dmitry\n"
|
|
|
|
" * Baudet, Bertrand\n"
|
|
|
|
" * Bedel, Alban\n"
|
|
|
|
" * Behrisch, Michael\n"
|
|
|
|
" * Belev, Luchezar\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Bérczi, Gábor\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Berecz, Szabolcs\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Beregszászi, Alex\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Bitterberg, Tilmann\n"
|
|
|
|
" * Biurrun, Diego\n"
|
|
|
|
" * Blomenkamp, Marcsu\n"
|
|
|
|
" * Buehler, Andrew\n"
|
|
|
|
" * Bulgroz, Eviv\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Bünemann, Felix\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Bunkus, Moritz\n"
|
|
|
|
" * Christiansen, Dan Villiom Podlaski\n"
|
|
|
|
" * Clagg, Jeff\n"
|
|
|
|
" * Compn\n"
|
|
|
|
" * Comstedt, Marcus\n"
|
|
|
|
" * Cook, Kees\n"
|
|
|
|
" * Davies, Stephen\n"
|
|
|
|
" * Di Vita, Piero\n"
|
|
|
|
" * Diedrich, Tobias\n"
|
|
|
|
" * Dietrich, Florian\n"
|
|
|
|
" * Dobbelaere, Jeroen\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Döffinger, Reimar\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Dolbeau, Romain\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Dönmez, Ismail\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Edele, Robert\n"
|
|
|
|
" * Egger, Christoph\n"
|
|
|
|
" * Elsinghorst, Paul Wilhelm\n"
|
|
|
|
" * Ernesti, Bernd\n"
|
|
|
|
" * Falco, Salvatore\n"
|
|
|
|
" * Feigl, Johannes\n"
|
|
|
|
" * Felker, D Richard III\n"
|
|
|
|
" * Ferguson, Tim\n"
|
|
|
|
" * Finlayson, Ross\n"
|
|
|
|
" * Forghieri, Daniele\n"
|
|
|
|
" * Foth, Kilian A.\n"
|
|
|
|
" * Franz, Fabian\n"
|
|
|
|
" * Gansser, Martin\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Gereöffy, Árpád\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Giani, Matteo\n"
|
|
|
|
" * Goethel, Sven\n"
|
|
|
|
" * Gomez Garcia, German\n"
|
|
|
|
" * Gottwald, Alexander\n"
|
|
|
|
" * Graffam, Michael\n"
|
|
|
|
" * Gritsenko, Andriy N.\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Guyomarch, Rémi\n"
|
|
|
|
" * Hammelmann, Jürgen\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Hertel, Christopher R.\n"
|
|
|
|
" * Hess, Andreas\n"
|
|
|
|
" * Hickey, Corey\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Hidvégi, Zoltán\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Hoffmann, Jens\n"
|
|
|
|
" * Holm, David\n"
|
|
|
|
" * Horst, Bohdan\n"
|
|
|
|
" * Hug, Hampa\n"
|
|
|
|
" * Hurka, Tomas\n"
|
|
|
|
" * Isani, Sidik\n"
|
|
|
|
" * Issaris, Panagiotis\n"
|
|
|
|
" * Jacobs, Aurelien\n"
|
|
|
|
" * Jelveh, Reza\n"
|
|
|
|
" * Jermann, Jonas\n"
|
|
|
|
" * Johansson, Anders\n"
|
|
|
|
" * Kain, Nicholas\n"
|
|
|
|
" * Kalinski, Filip\n"
|
|
|
|
" * Kalvachev, Ivan\n"
|
|
|
|
" * Kaniewski, Wojtek\n"
|
|
|
|
" * Kaplan, Kim Minh\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Kärkkäinen, Samuli\n"
|
|
|
|
" * Keil, Jürgen\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Kesterson, Robert\n"
|
|
|
|
" * Kinali, Attila\n"
|
|
|
|
" * Kovriga, Gregory\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Kühling, David\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Kuivinen, Fredrik\n"
|
|
|
|
" * Kurshev, Nick\n"
|
|
|
|
" * Kuschak, Brian\n"
|
|
|
|
" * Kushnir, Vladimir\n"
|
|
|
|
" * Lambley, Dave\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * László, Gyula\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Le Gaillart, Nicolas\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Lénárt, Gábor\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Leroy, Colin\n"
|
|
|
|
" * Liljeblad, Oskar\n"
|
|
|
|
" * Lin, Sam\n"
|
|
|
|
" * Lombard, Pierre\n"
|
|
|
|
" * Madick, Puk\n"
|
|
|
|
" * Makovicka, Jindrich\n"
|
|
|
|
" * Marek, Rudolf\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Megyer, László\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Melanson, Mike\n"
|
|
|
|
" * von Merkatz, Arwed\n"
|
|
|
|
" * Merritt, Loren\n"
|
|
|
|
" * Mierzejewski, Dominik\n"
|
|
|
|
" * Milushev, Mihail\n"
|
|
|
|
" * Mistry, Nehal\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Mohari, András\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Mueller, Steven\n"
|
|
|
|
" * Neundorf, Alexander\n"
|
|
|
|
" * Niedermayer, Michael\n"
|
|
|
|
" * Noring, Fredrik\n"
|
|
|
|
" * Ohm, Christian\n"
|
|
|
|
" * Parrish, Joey\n"
|
|
|
|
" * Pietrzak, Dariusz\n"
|
|
|
|
" * Plourde, Nicolas\n"
|
|
|
|
" * Poettering, Lennart\n"
|
|
|
|
" * Poirier, Guillaume\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Ponekker, Zoltán\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * van Poorten, Ivo\n"
|
|
|
|
" * Ran, Lu\n"
|
|
|
|
" * Reder, Uwe\n"
|
|
|
|
" * rgselk\n"
|
|
|
|
" * Rune Petersen\n"
|
|
|
|
" * Saari, Ville\n"
|
|
|
|
" * Sabbi, Nico\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Sandell, Björn\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Sauerbeck, Tilman\n"
|
|
|
|
" * Scherthan, Frank\n"
|
|
|
|
" * Schneider, Florian\n"
|
|
|
|
" * Schoenbrunner, Oliver\n"
|
|
|
|
" * Shimon, Oded\n"
|
|
|
|
" * Simon, Peter\n"
|
|
|
|
" * Snel, Rik\n"
|
|
|
|
" * Sommer, Sascha\n"
|
|
|
|
" * Strasser, Alexander\n"
|
|
|
|
" * Strzelecki, Kamil\n"
|
|
|
|
" * Svoboda, Jiri\n"
|
|
|
|
" * Swain, Robert\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Syrjälä, Ville\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Szecsi, Gabor\n"
|
|
|
|
" * Tackaberry, Jason\n"
|
|
|
|
" * Tam, Howell\n"
|
|
|
|
" * Tlalka, Adam\n"
|
|
|
|
" * Tiesi, Gianluigi\n"
|
|
|
|
" * Togni, Roberto\n"
|
|
|
|
" * Tropea, Salvador Eduardo\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Vajna, Miklós\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Verdejo Pinochet, Reynaldo H.\n"
|
|
|
|
" * Wigren, Per\n"
|
|
|
|
" * Witt, Derek J\n"
|
|
|
|
" * Young, Alan\n"
|
|
|
|
" * Zaprzala, Artur\n"
|
|
|
|
" * Zealey, Mark\n"
|
|
|
|
" * Ziv-Av, Matan\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Zoltán, Márk Vicián\n"
|
2003-02-01 08:37:20 +00:00
|
|
|
"\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
MSGTR_ABOUT_Codecs_libs_contributions
|
2003-02-01 08:37:20 +00:00
|
|
|
"\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Bellard, Fabrice\n"
|
|
|
|
" * Chappelier, Vivien and Vincent, Damien\n"
|
|
|
|
" * Hipp, Michael\n"
|
|
|
|
" * Holtzman, Aaron\n"
|
|
|
|
" * Janovetz, Jake\n"
|
|
|
|
" * Kabelac, Zdenek\n"
|
|
|
|
" * Kuznetsov, Eugene\n"
|
|
|
|
" * Lespinasse, Michel\n"
|
|
|
|
" * Podlipec, Mark\n"
|
2003-02-01 08:37:20 +00:00
|
|
|
"\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
MSGTR_ABOUT_Translations
|
|
|
|
"\n"
|
2006-01-02 23:22:13 +00:00
|
|
|
" * Biernat, Marcin\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Fargas, Marc\n"
|
|
|
|
" * Heryan, Jiri\n"
|
2006-01-02 23:22:13 +00:00
|
|
|
" * Jarycki, Marek\n"
|
|
|
|
" * Kaplita, Leszek\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Krämer, Sebastian\n"
|
|
|
|
" * López, Juan Martin\n"
|
2006-01-02 23:22:13 +00:00
|
|
|
" * Michniewski, Piotr\n"
|
|
|
|
" * Misiorny, Jakub\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Mizda, Gábor\n"
|
2006-01-02 23:22:13 +00:00
|
|
|
" * Paszta, Maciej\n"
|
|
|
|
" * Proszek, Łukasz\n"
|
|
|
|
" * Schiller, Wacław\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Zubimendi, Andoni\n"
|
|
|
|
"\n"
|
|
|
|
MSGTR_ABOUT_Skins
|
2003-02-01 08:37:20 +00:00
|
|
|
"\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Azrael\n"
|
|
|
|
" * Bekesi, Viktor\n"
|
|
|
|
" * Burt.S.\n"
|
|
|
|
" * Carpenter, Andrew\n"
|
|
|
|
" * Foucault, Charles\n"
|
|
|
|
" * Gyimesi, Attila\n"
|
|
|
|
" * Hertroys, Alban\n"
|
|
|
|
" * Juan Pablo\n"
|
|
|
|
" * Kiss, Balint\n"
|
|
|
|
" * Kuehne, Andre\n"
|
2005-12-10 17:31:04 +00:00
|
|
|
" * Kuhlmann, Rüdiger\n"
|
2005-12-07 21:17:29 +00:00
|
|
|
" * Naumov, Dan\n"
|
|
|
|
" * Northam, Ryan\n"
|
|
|
|
" * Oyarzun Arroyo\n"
|
|
|
|
" * Park, DongCheon\n"
|
|
|
|
" * Pehrson, Jurgen\n"
|
|
|
|
" * Pizurica, Nikola\n"
|
|
|
|
" * Ptak, Oliwier\n"
|
|
|
|
" * Riccio, Pasquale\n"
|
|
|
|
" * Schultz, Jesper\n"
|
|
|
|
" * Szumiela, Marcin\n"
|
|
|
|
" * Tisi, Massimo\n"
|
|
|
|
" * Tyr, Jiri jun.\n"
|
|
|
|
" * Vasilev, Ognian\n"
|
|
|
|
" * Veres, Imre\n"
|
|
|
|
" * Vesko, Radic\n"
|
|
|
|
" * Vigvary, Balasz\n"
|
|
|
|
" * Weber, Andrew\n"
|
|
|
|
" * Whitmore, Gary Jr.\n"
|
|
|
|
" * Wilamowski, Franciszek\n"
|
|
|
|
" * Zeising, Michael\n"
|
2003-02-01 08:37:20 +00:00
|
|
|
"\n",-1 );
|
2002-05-20 13:56:16 +00:00
|
|
|
|
2002-11-27 22:48:56 +00:00
|
|
|
AddHSeparator( vbox );
|
|
|
|
Ok=AddButton( MSGTR_Ok,AddHButtonBox( vbox ) );
|
|
|
|
|
2003-01-02 15:48:29 +00:00
|
|
|
gtk_signal_connect( GTK_OBJECT( About ),"destroy",GTK_SIGNAL_FUNC( WidgetDestroy ),&About );
|
|
|
|
gtk_signal_connect_object( GTK_OBJECT( Ok ),"clicked",GTK_SIGNAL_FUNC( abWidgetDestroy ),NULL );
|
2002-11-27 22:48:56 +00:00
|
|
|
|
|
|
|
gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE );
|
|
|
|
gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE );
|
2001-11-14 16:04:25 +00:00
|
|
|
gtk_window_add_accel_group( GTK_WINDOW( About ),accel_group );
|
|
|
|
|
|
|
|
return About;
|
|
|
|
}
|