зеркало из https://github.com/mozilla/pjs.git
Fixing up splash_xpm for phoenix builds on Linux. Not part of the default build.
This commit is contained in:
Родитель
e7225cc43d
Коммит
9d8ff1e1bb
|
@ -329,6 +329,9 @@ static void InitializeMacOSXApp(int argc, char* argv[])
|
|||
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
#include <gtk/gtk.h>
|
||||
#ifdef MOZ_PHOENIX
|
||||
#include SPLASH_XPM
|
||||
#endif
|
||||
#endif //MOZ_WIDGET_GTK
|
||||
|
||||
/* Define Class IDs */
|
||||
|
|
|
@ -25,7 +25,11 @@
|
|||
|
||||
#include "nsNativeAppSupportBase.h"
|
||||
#include "gdk/gdk.h"
|
||||
#ifdef MOZ_PHOENIX
|
||||
extern char* splash_xpm[];
|
||||
#else
|
||||
#include SPLASH_XPM
|
||||
#endif
|
||||
|
||||
class nsSplashScreenGtk : public nsISplashScreen {
|
||||
public:
|
||||
|
@ -61,6 +65,10 @@ nsSplashScreenGtk::~nsSplashScreenGtk()
|
|||
|
||||
NS_IMETHODIMP nsSplashScreenGtk::Show()
|
||||
{
|
||||
#ifdef MOZ_PHOENIX
|
||||
if (!splash_xpm[0])
|
||||
return NS_OK;
|
||||
#endif
|
||||
/* create a pixmap based on xpm data */
|
||||
GdkPixmap* pmap = gdk_pixmap_colormap_create_from_xpm_d(NULL,
|
||||
gdk_colormap_get_system(),
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
/* XPM */
|
||||
#ifdef MOZ_PHOENIX
|
||||
char * splash_xpm[] = {
|
||||
#else
|
||||
static char * splash_xpm[] = {
|
||||
#endif
|
||||
"390 261 257 2",
|
||||
" c None",
|
||||
". c #000000",
|
||||
|
|
Загрузка…
Ссылка в новой задаче