Mercurial > mplayer.hg
comparison Gui/mplayer/widgets.c @ 1850:62b8e85865a2
Some changes to compile the GUI on solaris
author | jkeil |
---|---|
date | Mon, 03 Sep 2001 16:13:25 +0000 |
parents | 1791c7930776 |
children | 5170fea62800 |
comparison
equal
deleted
inserted
replaced
1849:5f246fcc2971 | 1850:62b8e85865a2 |
---|---|
61 | 61 |
62 // --- forked function | 62 // --- forked function |
63 | 63 |
64 static void gtkThreadProc( int argc,char * argv[] ) | 64 static void gtkThreadProc( int argc,char * argv[] ) |
65 { | 65 { |
66 struct sigaction sa; | |
67 | |
66 gtk_set_locale(); | 68 gtk_set_locale(); |
67 gtk_init( &argc,&argv ); | 69 gtk_init( &argc,&argv ); |
68 gdk_set_use_xshm( TRUE ); | 70 gdk_set_use_xshm( TRUE ); |
69 | 71 |
70 widgetsCreate(); | 72 widgetsCreate(); |
71 | 73 |
72 gtkPID=getppid(); | 74 gtkPID=getppid(); |
73 | 75 |
74 signal( SIGTYPE,gtkSigHandler ); | 76 memset(&sa, 0, sizeof(sa)); |
77 sa.sa_handler = gtkSigHandler; | |
78 sigaction( SIGTYPE, &sa, NULL ); | |
75 | 79 |
76 gtkIsOk=True; | 80 gtkIsOk=True; |
77 gtkSendMessage( evGtkIsOk ); | 81 gtkSendMessage( evGtkIsOk ); |
78 | 82 |
79 gtk_main(); | 83 gtk_main(); |