Added desktop and icon files.

ver1_5_1
Pat Suwalski 2004-04-29 22:24:07 +00:00
parent f39b521ee1
commit 113a223e55
5 changed files with 154 additions and 3 deletions

View File

@ -1,10 +1,17 @@
schemasdir = $(GCONF_SCHEMA_FILE_DIR)
schemas_DATA = celestia.schemas
EXTRA_DIST = $(schemas_DATA)
EXTRA_DIST = $(schemas_DATA) celestia.png celestia.desktop
pkgdata_DATA = celestia.png
Applicationsdir = $(datadir)/applications
Applications_DATA = celestia.desktop
appicon_DATA = celestia.png
appicondir = $(datadir)/pixmaps
if GCONF_SCHEMAS_INSTALL
install-data-local:
if GCONF_SCHEMAS_INSTALL
if [ -n "$(GCONF_SCHEMA_CONFIG_SOURCE)" ]; then \
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
gconftool-2 --makefile-install-rule celestia.schemas; \

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.3.3
Type=Application
Exec=celestia
Icon=celestia
X-GNOME-DocPath=
Terminal=false
Name=Celestia
Comment=Space Simulator
StartupNotify=true
Categories=Astronomy;Science;Application;

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,131 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<!-- Created with Sodipodi ("http://www.sodipodi.com/") -->
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.0"
x="0"
y="0"
width="80"
height="80"
id="CelestiaIcon"
xml:space="preserve"><defs
id="defs604"><linearGradient
id="MoonFillRef"><stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop638" /><stop
style="stop-color:#3f3f3f;stop-opacity:1;"
offset="1"
id="stop639" /></linearGradient><linearGradient
id="FlareInnerFillRef"><stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop633" /><stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop634" /></linearGradient><linearGradient
id="FlareBlurFillRef"><stop
style="stop-color:#ffff70;stop-opacity:1;"
offset="0"
id="stop623" /><stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop624" /></linearGradient><linearGradient
id="PlanetAtmosphereFillRef"><stop
style="stop-color:#4c6699;stop-opacity:1;"
offset="0"
id="stop613" /><stop
style="stop-color:#111926;stop-opacity:0;"
offset="1"
id="stop614" /></linearGradient><linearGradient
id="PlanetFillRef"><stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop607" /><stop
style="stop-color:#262619;stop-opacity:1;"
offset="1"
id="stop608" /></linearGradient><radialGradient
cx="0.2890625"
cy="0.70312512"
r="0.83180195"
fx="0.2890625"
fy="0.70312512"
id="PlanetFill"
xlink:href="#PlanetFillRef" /><radialGradient
cx="0.7435897"
cy="0.23225814"
r="0.67502004"
fx="0.7435897"
fy="0.23225814"
id="PlanetAtmosphereFill"
xlink:href="#PlanetAtmosphereFillRef" /><radialGradient
cx="0.5"
cy="0.49999997"
r="0.49999997"
fx="0.5"
fy="0.49999997"
id="FlareBlurFill"
xlink:href="#FlareBlurFillRef" /><radialGradient
cx="0.5"
cy="0.5"
r="0.5"
fx="0.5"
fy="0.5"
id="FlareLineFill"
xlink:href="#FlareBlurFillRef" /><radialGradient
cx="0.5"
cy="0.5"
r="0.49999997"
fx="0.5"
fy="0.5"
id="FlareInnerFill"
xlink:href="#FlareInnerFillRef" /><radialGradient
cx="0.66923088"
cy="0.73437506"
r="0.94696009"
fx="0.66923088"
fy="0.73437506"
id="MoonFill"
xlink:href="#MoonFillRef" /></defs><ellipse
cx="30"
cy="40"
rx="8.75"
ry="8.75000191"
transform="matrix(3.499999,0,0,3.499999,-73.12498,-91.87498)"
style="font-size:12;fill:url(#PlanetFill);fill-rule:evenodd;stroke:url(#PlanetAtmosphereFill);stroke-width:0.7143;"
id="Planet" /><ellipse
cx="53.75"
cy="25"
rx="13.75"
ry="13.7499962"
transform="matrix(1.545454,0,0,1.545454,-29.31816,-13.63634)"
style="font-size:12;fill:url(#FlareBlurFill);fill-rule:evenodd;stroke-width:1;stroke-opacity:0.4667;"
id="FlareBlur" /><ellipse
cx="53.75"
cy="25"
rx="10"
ry="10"
style="font-size:12;fill:none;fill-rule:evenodd;stroke:#ffd600;stroke-width:1;stroke-opacity:0.33;"
id="FlareRing" /><path
d="M 58.75 50 L 50 0 "
style="font-size:12;fill:none;fill-rule:evenodd;stroke:url(#FlareLineFill);stroke-width:0.925996;"
id="FlareLine1" /><path
d="M 52.13045 50.28048 L 56.61955 -0.28048 "
style="font-size:12;fill:none;fill-rule:evenodd;stroke:url(#FlareLineFill);stroke-width:0.925996;"
id="FlareLine2" /><ellipse
cx="53.75"
cy="25"
rx="6.25"
ry="6.24999619"
style="font-size:12;fill:url(#FlareInnerFill);fill-rule:evenodd;stroke-width:1;"
id="FlareInner" /><ellipse
cx="65"
cy="62.5"
rx="7.5"
ry="7.50000191"
transform="translate(-3.75,0)"
style="font-size:12;fill:url(#MoonFill);fill-rule:evenodd;stroke-width:1;"
id="Moon" /></svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -4276,12 +4276,13 @@ int main(int argc, char* argv[])
#ifdef GNOME
// Set window contents (GNOME)
gnome_app_set_contents((GnomeApp *)mainWindow, GTK_WIDGET(mainBox));
gtk_window_set_default_icon_from_file("celestia.svg", NULL);
#else
// Set window contents (GTK)
gtk_container_add(GTK_CONTAINER(mainWindow), GTK_WIDGET(mainBox));
#endif
gtk_window_set_default_icon_from_file("celestia.png", NULL);
gtk_box_pack_start(GTK_BOX(mainBox), mainMenu, FALSE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(mainBox), oglArea, TRUE, TRUE, 0);