2001-11-14 16:04:25 +00:00
|
|
|
|
2002-11-02 16:09:05 +00:00
|
|
|
#include "../../app.h"
|
2001-11-14 16:04:25 +00:00
|
|
|
#include "../../../config.h"
|
|
|
|
#include "../../../help_mp.h"
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
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 );
|
|
|
|
|
|
|
|
AboutText=gtk_text_new( NULL,NULL );
|
|
|
|
gtk_widget_set_name( AboutText,"AboutText" );
|
|
|
|
gtk_widget_show( AboutText );
|
|
|
|
gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText );
|
|
|
|
gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL,
|
2003-02-01 08:37:20 +00:00
|
|
|
"\n"
|
|
|
|
MSGTR_ABOUT_UHU
|
|
|
|
" (http://www.uhulinux.hu/)\n"
|
|
|
|
"\n"
|
|
|
|
MSGTR_ABOUT_CoreTeam
|
|
|
|
"\n"
|
|
|
|
" * Arpad Gereoffy (A'rpi/ESP-team)\n"
|
|
|
|
" * Zoltan Ponekker (Pontscho/fresh!mindworkz)\n"
|
|
|
|
" * Gabor Berczi (Gabucino)\n"
|
|
|
|
" * Alex Beregszaszi (al3x)\n"
|
|
|
|
" * Gabor Lenart (LGB)\n"
|
|
|
|
" * Felix Buenemann (Atmos)\n"
|
|
|
|
" * Alban Bedel (Albeu)\n"
|
2003-03-17 00:48:26 +00:00
|
|
|
" * Pierre Lombard (pl)\n"
|
2003-02-01 08:37:20 +00:00
|
|
|
" * Michael Niedermayer\n"
|
|
|
|
"\n"
|
|
|
|
MSGTR_ABOUT_AdditionalCoders
|
|
|
|
"\n"
|
|
|
|
" * Szabolcs Berecz (Szabi)\n"
|
|
|
|
" * Laszlo Megyer (Lez, Laaz)\n"
|
|
|
|
" * Gyula Laszlo (Chass, Tegla)\n"
|
|
|
|
" * Zoltan Mark Vician (Se7en)\n"
|
|
|
|
" * Andreas Ackermann (Acki)\n"
|
|
|
|
" * Michael Graffam\n"
|
|
|
|
" * Jens Hoffmann\n"
|
|
|
|
" * German Gomez Garcia\n"
|
|
|
|
" * Dariusz Pietrzak (Eyck)\n"
|
|
|
|
" * Marcus Comstedt\n"
|
|
|
|
" * Juergen Keil\n"
|
|
|
|
" * Vladimir Kushnir\n"
|
|
|
|
" * Bertrand Baudet\n"
|
|
|
|
" * Derek J Witt\n"
|
|
|
|
" * Artur Zaprzala\n"
|
|
|
|
" * lanzz@lanzz.org\n"
|
|
|
|
" * Adam Tla/lka\n"
|
|
|
|
" * Folke Ashberg\n"
|
|
|
|
" * Kamil Toman\n"
|
|
|
|
" * Ivan Kalvatchev\n"
|
|
|
|
" * Sven Goethel\n"
|
2003-03-17 00:48:26 +00:00
|
|
|
" * Joy Winter\n"
|
2003-02-01 08:37:20 +00:00
|
|
|
" * Eric Anholt\n"
|
|
|
|
" * Jiri Svoboda\n"
|
|
|
|
" * Oliver Schoenbrunner\n"
|
|
|
|
" * Jeroen Dobbelaere\n"
|
|
|
|
" * David Holm\n"
|
|
|
|
" * Panagiotis Issaris\n"
|
|
|
|
" * Mike Melanson\n"
|
|
|
|
" * Tobias Diedrich\n"
|
|
|
|
" * Kilian A. Foth\n"
|
|
|
|
" * Tim Ferguson\n"
|
|
|
|
" * Sam Lin\n"
|
|
|
|
" * Johannes Feigl\n"
|
|
|
|
" * Kim Minh Kaplan\n"
|
|
|
|
" * Brian Kuschak\n"
|
|
|
|
" * Stephen Davies\n"
|
|
|
|
" * Rik Snel\n"
|
|
|
|
" * Anders Johansson\n"
|
|
|
|
" * Roberto Togni\n"
|
|
|
|
" * Wojtek Kaniewski\n"
|
|
|
|
" * Fredrik Kuivinen\n"
|
|
|
|
" * Diego Biurrun\n"
|
|
|
|
" * Sascha Sommer\n"
|
|
|
|
" * Jindrich Makovicka\n"
|
|
|
|
" * D Richard Felker III\n"
|
|
|
|
" * Moritz Bunkus\n"
|
|
|
|
" * Colin Leroy\n"
|
|
|
|
" * Joey Parrish\n"
|
|
|
|
" * Dominik Mierzejewski\n"
|
|
|
|
" * Florian Schneider\n"
|
2003-03-17 00:48:26 +00:00
|
|
|
" * Sidik Isani\n"
|
|
|
|
" * Fredrik Noring\n"
|
|
|
|
" * Kees Cook\n"
|
|
|
|
" * Hampa Hug\n"
|
|
|
|
" * Uwe Reder\n"
|
|
|
|
" * Andriy N. Gritsenko\n"
|
|
|
|
" * Juergen Hammelmann\n"
|
|
|
|
" * Martin Gansser\n"
|
|
|
|
" * Matteo Giani\n"
|
|
|
|
" * Rudolf Marek\n"
|
|
|
|
" * Tilman Sauerbeck\n"
|
|
|
|
" * Mark Zealey\n"
|
|
|
|
" * Gregory Kovriga\n"
|
|
|
|
" * Remi Guyomarch\n"
|
|
|
|
" * Salvatore Falco\n"
|
|
|
|
" * Ville Syrjala\n"
|
|
|
|
" * Bjorn Sandell\n"
|
|
|
|
" * Per Wigren\n"
|
|
|
|
" * Nicolas Le Gaillart\n"
|
|
|
|
" * Lu Ran\n"
|
|
|
|
" * Andras Mohari\n"
|
|
|
|
" * Denes Balatoni\n"
|
|
|
|
" * Oskar Liljeblad\n"
|
|
|
|
" * Bernd Ernesti\n"
|
2003-02-01 08:37:20 +00:00
|
|
|
"\n"
|
|
|
|
MSGTR_ABOUT_MainTesters
|
|
|
|
"\n"
|
|
|
|
" * Tibor Balazs (Tibcu)\n"
|
|
|
|
" * Peter Sasi (SaPe)\n"
|
2003-03-17 00:48:26 +00:00
|
|
|
" * Christoph H. Lampert (Gruel)\n"
|
|
|
|
" * Attila Kinali (KotH)\n"
|
2003-02-01 08:37:20 +00:00
|
|
|
" * Bohdan Horst (Nexus)\n"
|
|
|
|
"\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;
|
|
|
|
}
|