author | gman |
Tue, 08 Jun 2004 01:29:29 +0000 | |
changeset 3031 | 1f353a96e2b1 |
parent 3030 | 164169ba62bc |
child 4952 | 3a79602b062b |
permissions | -rw-r--r-- |
3030 | 1 |
diff -urN gnome-desktop-2.6.1/configure.in gnome-desktop-2.6.1-hacked/configure.in |
2 |
--- gnome-desktop-2.6.1/configure.in 2004-04-20 00:25:37.000000000 +1200 |
|
3 |
+++ gnome-desktop-2.6.1-hacked/configure.in 2004-06-08 13:11:31.000000000 +1200 |
|
2465 | 4 |
@@ -32,18 +32,25 @@ |
2582 | 5 |
GNOME_MINOR=6 |
3030 | 6 |
GNOME_MICRO=1 |
2465 | 7 |
GNOME_DISTRIBUTOR="GNOME.Org" |
8 |
+GNOME_DISTRIBUTOR_VERSION= |
|
9 |
GNOME_DATE=`date +"%Y-%m-%d"` |
|
10 |
||
11 |
AC_ARG_WITH(gnome_distributor, [ --with-gnome-distributor=DISTRIBUTOR Specify name of GNOME distributor]) |
|
12 |
+AC_ARG_WITH(gnome_distributor_version, [ --with_gnome-distributor-version=DISTRIBUTORVERSION Specify version of GNOME distribution]) |
|
13 |
||
14 |
if test "x$with_gnome_distributor" != x ; then |
|
15 |
GNOME_DISTRIBUTOR=$with_gnome_distributor |
|
16 |
fi |
|
17 |
||
18 |
+if test "x$with_gnome_distributor_version" != x ; then |
|
19 |
+ GNOME_DISTRIBUTOR_VERSION=$with_gnome_distributor_version |
|
20 |
+fi |
|
21 |
+ |
|
22 |
AC_SUBST(GNOME_PLATFORM) |
|
23 |
AC_SUBST(GNOME_MINOR) |
|
24 |
AC_SUBST(GNOME_MICRO) |
|
25 |
AC_SUBST(GNOME_DISTRIBUTOR) |
|
26 |
+AC_SUBST(GNOME_DISTRIBUTOR_VERSION) |
|
27 |
AC_SUBST(GNOME_DATE) |
|
28 |
||
29 |
GNOME_COMPILE_WARNINGS(yes) |
|
3030 | 30 |
diff -urN gnome-desktop-2.6.1/configure.in.orig gnome-desktop-2.6.1-hacked/configure.in.orig |
31 |
--- gnome-desktop-2.6.1/configure.in.orig 1970-01-01 12:00:00.000000000 +1200 |
|
32 |
+++ gnome-desktop-2.6.1-hacked/configure.in.orig 2004-06-08 13:11:21.000000000 +1200 |
|
33 |
@@ -0,0 +1,177 @@ |
|
34 |
+AC_INIT(libgnome-desktop) |
|
35 |
+AM_CONFIG_HEADER(config.h) |
|
36 |
+AM_INIT_AUTOMAKE(gnome-desktop, 2.6.1) |
|
37 |
+ |
|
38 |
+dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work |
|
39 |
+AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS") |
|
40 |
+ |
|
41 |
+# Before making a release, the LT_VERSION string should be modified. |
|
42 |
+# The string is of the form C:R:A. |
|
43 |
+# - If interfaces have been changed or added, but binary compatibility has |
|
44 |
+# been preserved, change to C+1:0:A+1 |
|
45 |
+# - If binary compatibility has been broken (eg removed or changed interfaces) |
|
46 |
+# change to C+1:0:0 |
|
47 |
+# - If the interface is the same as the previous version, change to C:R+1:A |
|
48 |
+ |
|
49 |
+LT_VERSION=3:12:1 |
|
50 |
+AC_SUBST(LT_VERSION) |
|
51 |
+ |
|
52 |
+AM_MAINTAINER_MODE |
|
53 |
+ |
|
54 |
+AC_PROG_INTLTOOL |
|
55 |
+ |
|
56 |
+AC_ISC_POSIX |
|
57 |
+AC_PROG_CC |
|
58 |
+AC_STDC_HEADERS |
|
59 |
+AC_ARG_PROGRAM |
|
60 |
+AC_LIBTOOL_WIN32_DLL |
|
61 |
+AM_PROG_LIBTOOL |
|
62 |
+AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
63 |
+ |
|
64 |
+GNOME_PLATFORM=2 |
|
65 |
+GNOME_MINOR=6 |
|
66 |
+GNOME_MICRO=1 |
|
67 |
+GNOME_DISTRIBUTOR="GNOME.Org" |
|
68 |
+GNOME_DATE=`date +"%Y-%m-%d"` |
|
69 |
+ |
|
70 |
+AC_ARG_WITH(gnome_distributor, [ --with-gnome-distributor=DISTRIBUTOR Specify name of GNOME distributor]) |
|
71 |
+ |
|
72 |
+if test "x$with_gnome_distributor" != x ; then |
|
73 |
+ GNOME_DISTRIBUTOR=$with_gnome_distributor |
|
74 |
+fi |
|
75 |
+ |
|
76 |
+AC_SUBST(GNOME_PLATFORM) |
|
77 |
+AC_SUBST(GNOME_MINOR) |
|
78 |
+AC_SUBST(GNOME_MICRO) |
|
79 |
+AC_SUBST(GNOME_DISTRIBUTOR) |
|
80 |
+AC_SUBST(GNOME_DATE) |
|
81 |
+ |
|
82 |
+GNOME_COMPILE_WARNINGS(yes) |
|
83 |
+ |
|
84 |
+AC_ARG_ENABLE(deprecations, |
|
85 |
+ [AC_HELP_STRING([--enable-deprecations], |
|
86 |
+ [warn about deprecated usages [default=no]])],, |
|
87 |
+ [enable_deprecations=no]) |
|
88 |
+ |
|
89 |
+if test "x$enable_deprecations" = "xyes"; then |
|
90 |
+ DISABLE_DEPRECATED_CFLAGS="\ |
|
91 |
+-DG_DISABLE_DEPRECATED \ |
|
92 |
+-DGDK_DISABLE_DEPRECATED \ |
|
93 |
+-DGTK_DISABLE_DEPRECATED \ |
|
94 |
+-DGDK_PIXBUF_DISABLE_DEPRECATED \ |
|
95 |
+-DGNOME_DISABLE_DEPRECATED" |
|
96 |
+ AC_SUBST(DISABLE_DEPRECATED_CFLAGS) |
|
97 |
+fi |
|
98 |
+ |
|
99 |
+dnl If you add a version number here, you *must* add an AC_SUBST line for |
|
100 |
+dnl it too, or it will never make it into the spec file! |
|
101 |
+ |
|
102 |
+GDK_PIXBUF_REQUIRED=2.0.3 |
|
103 |
+GTK_REQUIRED=2.1.2 |
|
104 |
+LIBGNOMECANVAS_REQUIRED=2.0.0 |
|
105 |
+LIBGNOMEUI_REQUIRED=2.1.0 |
|
106 |
+GNOME_VFS_REQUIRED=2.0.0 |
|
107 |
+STARTUP_NOTIFICATION_REQUIRED=0.5 |
|
108 |
+ |
|
109 |
+AC_SUBST(GTK_REQUIRED) |
|
110 |
+AC_SUBST(GDK_PIXBUF_REQUIRED) |
|
111 |
+AC_SUBST(LIBGNOMEUI_REQUIRED) |
|
112 |
+AC_SUBST(LIBGNOMECANVAS_REQUIRED) |
|
113 |
+AC_SUBST(GNOME_VFS_REQUIRED) |
|
114 |
+AC_SUBST(STARTUP_NOTIFICATION_REQUIRED) |
|
115 |
+ |
|
116 |
+if $PKG_CONFIG --atleast-version $STARTUP_NOTIFICATION_REQUIRED libstartup-notification-1.0; then |
|
117 |
+ echo "Building with libstartup-notification" |
|
118 |
+ AC_DEFINE(HAVE_STARTUP_NOTIFICATION) |
|
119 |
+ with_startup_notification=yes |
|
120 |
+ STARTUP_NOTIFICATION_PACKAGE=libstartup-notification-1.0 |
|
121 |
+else |
|
122 |
+ echo "***** WARNING: Building without libstartup-notification" |
|
123 |
+ with_startup_notification=no |
|
124 |
+ STARTUP_NOTIFICATION_PACKAGE= |
|
125 |
+fi |
|
126 |
+ |
|
127 |
+AC_SUBST(STARTUP_NOTIFICATION_PACKAGE) |
|
128 |
+ |
|
129 |
+dnl pkg-config dependency checks |
|
130 |
+ |
|
131 |
+PKG_CHECK_MODULES(GNOME_DESKTOP, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED $STARTUP_NOTIFICATION_PACKAGE) |
|
132 |
+AC_SUBST(GNOME_DESKTOP_CFLAGS) |
|
133 |
+AC_SUBST(GNOME_DESKTOP_LIBS) |
|
134 |
+ |
|
135 |
+PKG_CHECK_MODULES(GNOME_ABOUT, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libgnomecanvas-2.0 >= $LIBGNOMECANVAS_REQUIRED) |
|
136 |
+AC_SUBST(GNOME_ABOUT_CFLAGS) |
|
137 |
+AC_SUBST(GNOME_ABOUT_LIBS) |
|
138 |
+ |
|
139 |
+dnl scrollkeeper checks |
|
140 |
+ |
|
141 |
+AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no) |
|
142 |
+if test x$SCROLLKEEPER_CONFIG = xno; then |
|
143 |
+ AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package) |
|
144 |
+fi |
|
145 |
+ |
|
146 |
+dnl Language Support |
|
147 |
+ |
|
148 |
+GETTEXT_PACKAGE=gnome-desktop-2.0 |
|
149 |
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE") |
|
150 |
+AC_SUBST(GETTEXT_PACKAGE) |
|
151 |
+ |
|
152 |
+ALL_LINGUAS="af am ar az be bg bn br bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja kn ko li lt lv mi mk ml mn mr ms ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tk tr uk vi wa yi zh_CN zh_TW" |
|
153 |
+AM_GLIB_GNU_GETTEXT |
|
154 |
+ |
|
155 |
+ |
|
156 |
+dnl Place to look for KDE menus |
|
157 |
+ |
|
158 |
+AC_ARG_WITH(kde-datadir, [ --with-kde-datadir=DIR Location of KDE data]) |
|
159 |
+ |
|
160 |
+if test "x$with_kde_datadir" = x ; then |
|
161 |
+ kde_datadir=/usr/share |
|
162 |
+else |
|
163 |
+ kde_datadir=$with_kde_datadir |
|
164 |
+fi |
|
165 |
+ |
|
166 |
+AC_DEFINE_UNQUOTED(KDE_MENUDIR, "$kde_datadir/applnk") |
|
167 |
+AC_DEFINE_UNQUOTED(KDE_ICONDIR, "$kde_datadir/icons") |
|
168 |
+AC_DEFINE_UNQUOTED(KDE_MINI_ICONDIR, "$kde_datadir/icons/mini") |
|
169 |
+ |
|
170 |
+dnl Don't use AC_PROG_AWK since we need the full pathname. |
|
171 |
+AC_PATH_PROGS(AWK, mawk gawk nawk awk, ) |
|
172 |
+AC_PATH_PROGS(PERL, perl5 perl) |
|
173 |
+ |
|
174 |
+dnl define a MAINT-like variable REBUILD which is set if Perl |
|
175 |
+dnl and awk are found, so autogenerated sources can be rebuilt |
|
176 |
+AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes) |
|
177 |
+REBUILD=\# |
|
178 |
+if test "x$enable_rebuilds" = "xyes" && \ |
|
179 |
+ test -n "$PERL" && \ |
|
180 |
+ $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \ |
|
181 |
+ test -n "$AWK" ; then |
|
182 |
+ REBUILD= |
|
183 |
+fi |
|
184 |
+AC_SUBST(REBUILD) |
|
185 |
+ |
|
186 |
+AC_OUTPUT([ |
|
187 |
+Makefile |
|
188 |
+gnome-desktop.spec |
|
189 |
+desktop-links/Makefile |
|
190 |
+gnome-about/Makefile |
|
191 |
+gnome-about/headers/Makefile |
|
192 |
+libgnome-desktop/Makefile |
|
193 |
+libgnome-desktop/libgnome/Makefile |
|
194 |
+libgnome-desktop/libgnomeui/Makefile |
|
195 |
+libgnome-desktop/gnome-desktop-2.0.pc |
|
196 |
+libgnome-desktop/gnome-desktop-2.0-uninstalled.pc |
|
197 |
+gnome-version.xml.in |
|
198 |
+po/Makefile.in |
|
199 |
+pixmaps/Makefile |
|
200 |
+desktop-docs/Makefile |
|
201 |
+desktop-docs/fdl/Makefile |
|
202 |
+desktop-docs/fdl/C/Makefile |
|
203 |
+desktop-docs/gpl/Makefile |
|
204 |
+desktop-docs/gpl/C/Makefile |
|
205 |
+desktop-docs/lgpl/Makefile |
|
206 |
+desktop-docs/lgpl/C/Makefile |
|
207 |
+desktop-docs/gnome-feedback/Makefile |
|
208 |
+desktop-docs/gnome-feedback/C/Makefile |
|
209 |
+man/Makefile |
|
210 |
+]) |
|
211 |
diff -urN gnome-desktop-2.6.1/gnome-about/contributors.h gnome-desktop-2.6.1-hacked/gnome-about/contributors.h |
|
212 |
--- gnome-desktop-2.6.1/gnome-about/contributors.h 2004-03-23 03:20:30.000000000 +1200 |
|
213 |
+++ gnome-desktop-2.6.1-hacked/gnome-about/contributors.h 2004-06-08 13:11:31.000000000 +1200 |
|
2465 | 214 |
@@ -10,6 +10,88 @@ |
215 |
||
216 |
/* Please keep this in alphabetical order */ |
|
217 |
static gchar *contributors[] = { |
|
218 |
+ "Sowmya Adiga", |
|
219 |
+ "Dan Baigent", |
|
220 |
+ "Geoff Baysinger", |
|
221 |
+ "Calum Benson", |
|
222 |
+ "Leo Binchy", |
|
223 |
+ "Chandrashekhar BK", |
|
224 |
+ "Oliver Braun", |
|
225 |
+ "Stephen Browne", |
|
226 |
+ "Brian Cameron", |
|
227 |
+ "Suresh Chandrasekharan", |
|
228 |
+ "Erwann Chenede", |
|
229 |
+ "Martin Damboldt ", |
|
230 |
+ "Simford Dong", |
|
231 |
+ "York Du", |
|
232 |
+ "Olaf Felka", |
|
233 |
+ "Glynn Foster", |
|
234 |
+ "Carl Gadener", |
|
235 |
+ "Karl Gaffney", |
|
236 |
+ "Dirk Grobler", |
|
237 |
+ "Patrick Gu", |
|
238 |
+ "Leena Gunda", |
|
239 |
+ "Ii Gyoung Park", |
|
240 |
+ "Susan Jefferies", |
|
241 |
+ "Henry Jia", |
|
242 |
+ "Jack Jia", |
|
243 |
+ "Rick Ju", |
|
244 |
+ "Matt Keenan", |
|
245 |
+ "Robert Kinsella", |
|
246 |
+ "Laszlo Kovacs", |
|
247 |
+ "Michael Krivoruchko", |
|
248 |
+ "Kaushal Kumar", |
|
249 |
+ "Thorsten Laux", |
|
250 |
+ "Nancy Lee", |
|
251 |
+ "Mike Lei", |
|
252 |
+ "Jessie Li", |
|
253 |
+ "Gary Little", |
|
254 |
+ "Calvin Liu", |
|
255 |
+ "Harry Lu", |
|
256 |
+ "Robin Lu", |
|
257 |
+ "Yogeesh MB", |
|
258 |
+ "Dermot McCluskey", |
|
259 |
+ "Mark McLoughlin", |
|
260 |
+ "Jeff McMeekin", |
|
261 |
+ "Ashish Mukharji ", |
|
262 |
+ "Kaveri Murthy", |
|
263 |
+ "Muktha Narayan", |
|
264 |
+ "Brian Nitz", |
|
265 |
+ "Shane O'Connor", |
|
266 |
+ "Robert O'Dea", |
|
267 |
+ "Narayana Pattipati", |
|
268 |
+ "Vijaykumar Patwari", |
|
269 |
+ "Laszlo Peter", |
|
270 |
+ "Terri Ponce", |
|
271 |
+ "Niall Power", |
|
272 |
+ "Derek Rafter ", |
|
273 |
+ "Arvind Samptur", |
|
274 |
+ "Curtis Sasaki", |
|
275 |
+ "Hema Seetharamaiah", |
|
276 |
+ "Leon Sha ", |
|
277 |
+ "Archana Shah", |
|
278 |
+ "Kalpesh Shah", |
|
279 |
+ "Luke Shi", |
|
280 |
+ "Sidhartha Sinha", |
|
281 |
+ "Louise Siu", |
|
282 |
+ "Anand Subramanian", |
|
283 |
+ "Jerry Tan", |
|
284 |
+ "Ghee Teo", |
|
285 |
+ "Michael Twomey", |
|
286 |
+ "Balamurali Viswanathan", |
|
287 |
+ "Deirdre Williams", |
|
288 |
+ "Joshua Xia", |
|
289 |
+ "Antonio Xu ", |
|
290 |
+ "Amith Yamasani", |
|
291 |
+ "Ervin Yan", |
|
292 |
+ "Jay Yan", |
|
293 |
+ "Mark Yang", |
|
294 |
+ "Bolian Yin", |
|
295 |
+ "Kyle Yuan", |
|
296 |
+ "Pete Zha", |
|
297 |
+ "Leon Zhang", |
|
298 |
+ "Louie Zhao", |
|
299 |
+ "end_of_sun_contributors", |
|
300 |
"J\xc3\xa9r\xc3\xb4me Abela", |
|
301 |
"Rob Adams", |
|
302 |
"Lauri Alanko", |
|
3030 | 303 |
diff -urN gnome-desktop-2.6.1/gnome-about/gnome-about.c gnome-desktop-2.6.1-hacked/gnome-about/gnome-about.c |
304 |
--- gnome-desktop-2.6.1/gnome-about/gnome-about.c 2004-04-20 00:27:40.000000000 +1200 |
|
3031 | 305 |
+++ gnome-desktop-2.6.1-hacked/gnome-about/gnome-about.c 2004-06-08 13:25:46.000000000 +1200 |
2465 | 306 |
@@ -54,6 +54,9 @@ |
307 |
||
308 |
static char **introduction_messages = NULL; |
|
309 |
static GnomeCanvasItem *subheader = NULL; |
|
310 |
+static GnomeCanvasItem *welcome_text = NULL; |
|
311 |
+static GnomeCanvasItem *version_text = NULL; |
|
312 |
+static char *version_string = NULL; |
|
313 |
static gdouble version_info_height = 0.0; |
|
314 |
static gint contrib_i = 0; |
|
315 |
||
316 |
@@ -136,6 +139,29 @@ |
|
317 |
||
318 |
if (!contributors[contrib_i]) |
|
319 |
text = g_strdup_printf ("<b>%s</b>", _("The End!")); |
|
320 |
+ else if (g_strcasecmp (contributors[contrib_i], "end_of_sun_contributors") == 0 ) { |
|
321 |
+ gchar *welcome; |
|
322 |
+ welcome = g_strdup_printf ("<big><big><b>%s</b></big></big>", |
|
323 |
+ _("Welcome to the GNOME Desktop")); |
|
324 |
+ gnome_canvas_item_set (welcome_text, |
|
325 |
+ "markup", welcome, |
|
326 |
+ "anchor", GTK_ANCHOR_NW, |
|
327 |
+ "fill_color", "#000000", |
|
328 |
+ NULL); |
|
329 |
+ if (version_string && version_string[0]) { |
|
330 |
+ gchar *version = g_strdup_printf ("<b>%s: </b>%s", |
|
331 |
+ _("Version"), version_string); |
|
332 |
+ gnome_canvas_item_set (version_text, |
|
333 |
+ "markup", version, |
|
334 |
+ "anchor", GTK_ANCHOR_NW, |
|
335 |
+ "fill_color", "#000000", |
|
336 |
+ NULL); |
|
337 |
+ g_free (version); |
|
338 |
+ } |
|
339 |
+ g_free (welcome); |
|
340 |
+ contrib_i++; |
|
341 |
+ text = g_strdup_printf ("<b>%s</b>", contributors[contrib_i]); |
|
342 |
+ } |
|
343 |
else { |
|
344 |
text = g_strdup_printf ("<b>%s</b>", contributors[contrib_i]); |
|
345 |
contrib_i++; |
|
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
346 |
@@ -166,6 +192,29 @@ |
2465 | 347 |
return FALSE; |
348 |
} |
|
349 |
||
350 |
+ if (g_strcasecmp (contributors[contrib_i], "end_of_sun_contributors") == 0 ) { |
|
351 |
+ gchar *welcome; |
|
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
352 |
+ welcome = g_strdup_printf ("<big><big><b>%s</b></big></big>", |
2465 | 353 |
+ _("Welcome to the GNOME Desktop")); |
354 |
+ gnome_canvas_item_set (welcome_text, |
|
355 |
+ "markup", welcome, |
|
356 |
+ "anchor", GTK_ANCHOR_NW, |
|
357 |
+ "fill_color", "#000000", |
|
358 |
+ NULL); |
|
359 |
+ if (version_string && version_string[0]) { |
|
360 |
+ gchar *version = g_strdup_printf ("<b>%s: </b>%s", |
|
361 |
+ _("Version"), version_string); |
|
362 |
+ gnome_canvas_item_set (version_text, |
|
363 |
+ "markup", version, |
|
364 |
+ "anchor", GTK_ANCHOR_NW, |
|
365 |
+ "fill_color", "#000000", |
|
366 |
+ NULL); |
|
367 |
+ g_free (version); |
|
368 |
+ } |
|
369 |
+ g_free (welcome); |
|
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
370 |
+ contrib_i++; |
2465 | 371 |
+ } |
372 |
+ |
|
373 |
if (!contributor) { |
|
374 |
gchar *text; |
|
375 |
||
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
376 |
@@ -520,6 +569,7 @@ |
2582 | 377 |
|
378 |
const gchar *text; |
|
379 |
const gchar *url; |
|
380 |
+ gboolean is_link; |
|
381 |
} HRefItem; |
|
382 |
||
383 |
static gboolean |
|
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
384 |
@@ -546,18 +596,38 @@ |
2582 | 385 |
case GDK_BUTTON_PRESS: { |
386 |
GError *error= NULL; |
|
387 |
||
388 |
- gnome_url_show (href->url, &error); |
|
389 |
- if (error) { |
|
390 |
- char *message; |
|
391 |
- |
|
392 |
- message = g_strdup_printf (_("Could not open the address \"%s\": %s"), |
|
393 |
- href->url, error->message); |
|
394 |
- show_error_dialog (message); |
|
395 |
+ if (!href->is_link) { |
|
396 |
+ gnome_url_show (href->url, &error); |
|
397 |
+ if (error) { |
|
398 |
+ char *message; |
|
399 |
+ |
|
400 |
+ message = g_strdup_printf (_("Could not open the address \"%s\": %s"), |
|
401 |
+ href->url, error->message); |
|
402 |
+ show_error_dialog (message); |
|
403 |
||
404 |
- g_free (message); |
|
405 |
- g_error_free (error); |
|
406 |
- } |
|
407 |
+ g_free (message); |
|
408 |
+ g_error_free (error); |
|
409 |
+ } |
|
410 |
+ } else { |
|
411 |
+ char *tmp; |
|
412 |
+ tmp = g_find_program_in_path (href->url); |
|
413 |
+ |
|
414 |
+ if (tmp) { |
|
415 |
+ g_spawn_command_line_async (tmp, &error); |
|
416 |
+ g_free (tmp); |
|
417 |
+ } |
|
418 |
+ |
|
419 |
+ if (error) { |
|
420 |
+ char *message; |
|
421 |
+ |
|
422 |
+ message = g_strdup_printf (_("Could not execute \"%s\": %s"), |
|
423 |
+ href->url, error->message); |
|
424 |
+ show_error_dialog (message); |
|
425 |
||
426 |
+ g_free (message); |
|
427 |
+ g_error_free (error); |
|
428 |
+ } |
|
429 |
+ } |
|
430 |
return TRUE; |
|
431 |
} |
|
432 |
||
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
433 |
@@ -572,6 +642,7 @@ |
2582 | 434 |
href_item_new (GnomeCanvasGroup *group, |
435 |
const gchar *text, |
|
436 |
const gchar *url, |
|
437 |
+ gboolean is_link, |
|
438 |
gdouble *current_x, |
|
439 |
gdouble *current_y) |
|
440 |
{ |
|
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
441 |
@@ -581,6 +652,7 @@ |
2582 | 442 |
item = g_new0 (HRefItem, 1); |
443 |
item->text = g_strdup (text); |
|
444 |
item->url = g_strdup (url); |
|
445 |
+ item->is_link = is_link; |
|
446 |
||
447 |
item->item = |
|
448 |
gnome_canvas_item_new (group, |
|
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
449 |
@@ -789,8 +861,8 @@ |
2465 | 450 |
char *platform = NULL; |
451 |
char *minor = NULL; |
|
452 |
char *micro = NULL; |
|
453 |
- char *version_string = NULL; |
|
454 |
char *distributor_string = NULL; |
|
455 |
+ char *distributor_version_string = NULL; |
|
456 |
char *build_date_string = NULL; |
|
457 |
char *text = NULL; |
|
458 |
||
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
459 |
@@ -836,6 +908,8 @@ |
2465 | 460 |
minor = g_strdup (value); |
461 |
if (!g_ascii_strcasecmp (name, "micro") && value && value[0]) |
|
462 |
micro = g_strdup (value); |
|
463 |
+ if (!g_ascii_strcasecmp (name, "distributor-version") && value && value[0]) |
|
464 |
+ distributor_version_string = g_strdup (value); |
|
465 |
if (!g_ascii_strcasecmp (name, "distributor") && value && value[0]) |
|
466 |
distributor_string = g_strdup (value); |
|
467 |
if (!g_ascii_strcasecmp (name, "date") && value && value[0]) |
|
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
468 |
@@ -851,10 +925,10 @@ |
2465 | 469 |
version_string = g_strconcat (platform, NULL); |
470 |
||
471 |
if (!version_string && !micro) |
|
472 |
- version_string = g_strconcat (platform, ".", minor, NULL); |
|
473 |
+ version_string = g_strconcat (platform, " ", minor, NULL); |
|
474 |
||
475 |
if (!version_string) |
|
476 |
- version_string = g_strconcat (platform, ".", minor, ".", |
|
477 |
+ version_string = g_strconcat (platform, " ", minor, ".", |
|
478 |
micro, NULL); |
|
479 |
||
480 |
g_free (platform); |
|
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
481 |
@@ -866,22 +940,38 @@ |
2465 | 482 |
"x", 10.0, |
483 |
NULL); |
|
484 |
||
485 |
- if (version_string && version_string[0]) { |
|
486 |
+ if (distributor_version_string && distributor_version_string[0]) { |
|
487 |
+ gdouble tmp; |
|
488 |
+ |
|
489 |
+ text = g_strdup_printf ("<b>%s: </b>%s", |
|
490 |
+ _("Version"), distributor_version_string); |
|
491 |
+ version_text = gnome_canvas_item_new (GNOME_CANVAS_GROUP (info), |
|
492 |
+ gnome_canvas_text_get_type (), |
|
493 |
+ "markup", text, |
|
494 |
+ "anchor", GTK_ANCHOR_NW, |
|
495 |
+ "x", 0.0, |
|
496 |
+ "y", height, |
|
497 |
+ NULL); |
|
498 |
+ g_free (text); |
|
499 |
+ |
|
500 |
+ g_object_get (version_text, "text_height", &tmp, NULL); |
|
501 |
+ height += tmp + 4.0; |
|
502 |
+ } |
|
503 |
+ else if (version_string && version_string[0]) { |
|
504 |
gdouble tmp; |
|
505 |
- GnomeCanvasItem *item; |
|
506 |
||
507 |
text = g_strdup_printf ("<b>%s: </b>%s", |
|
508 |
_("Version"), version_string); |
|
509 |
- item = gnome_canvas_item_new (GNOME_CANVAS_GROUP (info), |
|
510 |
- gnome_canvas_text_get_type (), |
|
511 |
- "markup", text, |
|
512 |
- "anchor", GTK_ANCHOR_NW, |
|
513 |
- "x", 0.0, |
|
514 |
- "y", height, |
|
515 |
- NULL); |
|
516 |
+ version_text = gnome_canvas_item_new (GNOME_CANVAS_GROUP (info), |
|
517 |
+ gnome_canvas_text_get_type (), |
|
518 |
+ "markup", text, |
|
519 |
+ "anchor", GTK_ANCHOR_NW, |
|
520 |
+ "x", 0.0, |
|
521 |
+ "y", height, |
|
522 |
+ NULL); |
|
523 |
g_free (text); |
|
524 |
||
525 |
- g_object_get (item, "text_height", &tmp, NULL); |
|
526 |
+ g_object_get (version_text, "text_height", &tmp, NULL); |
|
527 |
height += tmp + 4.0; |
|
528 |
} |
|
529 |
||
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
530 |
@@ -923,8 +1013,8 @@ |
2465 | 531 |
height += tmp + 4.0; |
532 |
} |
|
533 |
||
534 |
- g_free (version_string); |
|
535 |
g_free (distributor_string); |
|
536 |
+ g_free (distributor_version_string); |
|
537 |
g_free (build_date_string); |
|
538 |
||
539 |
gnome_canvas_item_set (info, "y", canvas_height - height, NULL); |
|
3031 | 540 |
@@ -938,7 +1028,7 @@ |
541 |
GtkWidget *canvas; |
|
542 |
||
543 |
HRefItem *href; |
|
544 |
- gchar *text; |
|
545 |
+ gchar *text, *path; |
|
546 |
||
547 |
GnomeCanvasItem *item; |
|
548 |
GnomeCanvasGroup *root; |
|
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
549 |
@@ -991,8 +1081,9 @@ |
2465 | 550 |
current_y = (gdouble)gdk_pixbuf_get_height (header) + 5.0; |
551 |
||
552 |
href = href_item_new (root, |
|
553 |
- _("About GNOME"), |
|
554 |
- "http://www.gnome.org/about/", |
|
555 |
+ _("About JDS"), |
|
556 |
+ "http://www.sun.com/software/javadesktopsystem/", |
|
2582 | 557 |
+ FALSE, |
2465 | 558 |
¤t_x, ¤t_y); |
559 |
||
560 |
/* make a nice guess for the dot delta */ |
|
2858
b760b9506545
* patches/gnome-desktop-01-jds-about-branding.diff: Fix a typo where an
dduvall
parents:
2582
diff
changeset
|
561 |
@@ -1005,8 +1096,9 @@ |
2465 | 562 |
/* and more items on a likewise way. |
563 |
*/ |
|
564 |
href = href_item_new (root, |
|
565 |
- _("News"), |
|
566 |
- "http://www.gnomedesktop.org", |
|
2582 | 567 |
+ _("About GNOME"), |
568 |
+ "http://www.gnome.org/about/", |
|
569 |
+ FALSE, |
|
2465 | 570 |
¤t_x, ¤t_y); |
571 |
item = create_dot (root, ¤t_x, ¤t_y, dot_delta); |
|
572 |
||
3031 | 573 |
@@ -1016,29 +1108,42 @@ |
2582 | 574 |
*/ |
575 |
href = href_item_new (root, |
|
576 |
_("Software"), |
|
577 |
- "http://www.gnome.org/softwaremap", |
|
578 |
+ "http://wwws.sun.com/software", |
|
579 |
+ FALSE, |
|
580 |
¤t_x, ¤t_y); |
|
581 |
item = create_dot (root, ¤t_x, ¤t_y, dot_delta); |
|
582 |
||
583 |
href = href_item_new (root, |
|
584 |
_("Developers"), |
|
585 |
- "http://developer.gnome.org/", |
|
3030 | 586 |
- ¤t_x, ¤t_y); |
587 |
- item = create_dot (root, ¤t_x, ¤t_y, dot_delta); |
|
588 |
- |
|
589 |
- href = href_item_new (root, |
|
590 |
- _("Friends of GNOME"), |
|
591 |
- "http://www.gnome.org/friends/", |
|
2582 | 592 |
+ "http://developers.sun.com/", |
593 |
+ FALSE, |
|
594 |
¤t_x, ¤t_y); |
|
2465 | 595 |
item = create_dot (root, ¤t_x, ¤t_y, dot_delta); |
596 |
||
597 |
href = href_item_new (root, |
|
3030 | 598 |
_("Contact"), |
599 |
- "http://www.gnome.org/contact/", |
|
2582 | 600 |
+ "http://www.sun.com/contact/", |
601 |
+ FALSE, |
|
602 |
¤t_x, ¤t_y); |
|
603 |
||
3031 | 604 |
+ path = g_find_program_in_path ("bug-buddy"); |
605 |
+ |
|
606 |
+ if (path != NULL) { |
|
3030 | 607 |
+ item = create_dot (root, ¤t_x, ¤t_y, dot_delta); |
608 |
+ href = href_item_new (root, |
|
609 |
+ _("Report a bug"), |
|
610 |
+ "bug-buddy", |
|
611 |
+ TRUE, |
|
612 |
+ ¤t_x, ¤t_y); |
|
3031 | 613 |
+ g_free (path); |
3030 | 614 |
+ } |
615 |
+ |
|
2465 | 616 |
/* resize */ |
617 |
canvas_width = current_x; |
|
618 |
+ |
|
619 |
+ if (current_x > canvas_width) |
|
620 |
+ canvas_width = current_x; |
|
621 |
+ |
|
622 |
gnome_canvas_set_scroll_region (GNOME_CANVAS (canvas), 0, 0, |
|
623 |
canvas_width, canvas_height); |
|
624 |
gtk_widget_set_size_request (GTK_WIDGET (canvas), |
|
3031 | 625 |
@@ -1048,7 +1153,7 @@ |
2465 | 626 |
points = gnome_canvas_points_new (2); |
627 |
points->coords[0] = 0.0; |
|
628 |
points->coords[1] = gdk_pixbuf_get_height (header); |
|
629 |
- points->coords[2] = current_x; |
|
630 |
+ points->coords[2] = canvas_width; |
|
631 |
points->coords[3] = gdk_pixbuf_get_height (header); |
|
632 |
||
633 |
item = gnome_canvas_item_new (root, |
|
3031 | 634 |
@@ -1070,7 +1175,7 @@ |
2465 | 635 |
|
636 |
/* and some introduction text */ |
|
637 |
text = g_strdup_printf ("<big><big><b>%s</b></big></big>", |
|
638 |
- _("Welcome to the GNOME Desktop")); |
|
639 |
+ _("Welcome to the Sun Java Desktop System")); |
|
640 |
item = gnome_canvas_item_new (root, |
|
641 |
gnome_canvas_text_get_type (), |
|
642 |
"markup", text, |
|
3031 | 643 |
@@ -1082,9 +1187,10 @@ |
2465 | 644 |
|
645 |
g_object_get (item, "text_width", &tmp, NULL); |
|
646 |
gnome_canvas_item_set (item, |
|
647 |
- "x", (canvas_width - tmp) / 2.0, |
|
648 |
+ "x", (canvas_width - tmp + (gdouble)gdk_pixbuf_get_width (button)) / 2.0, |
|
649 |
NULL); |
|
650 |
||
651 |
+ welcome_text = item; |
|
652 |
||
653 |
text = g_strdup_printf ("<big><b>%s</b></big>", |
|
654 |
_("Brought to you by:")); |
|
3031 | 655 |
@@ -1100,7 +1206,7 @@ |
2465 | 656 |
|
657 |
g_object_get (item, "text_width", &tmp, NULL); |
|
658 |
gnome_canvas_item_set (item, |
|
659 |
- "x", (canvas_width - tmp) / 2.0, |
|
660 |
+ "x", (canvas_width - tmp + (gdouble)gdk_pixbuf_get_width (button)) / 2.0, |
|
661 |
NULL); |
|
662 |
||
663 |
/* and the version info */ |
|
3030 | 664 |
diff -urN gnome-desktop-2.6.1/Makefile.am gnome-desktop-2.6.1-hacked/Makefile.am |
665 |
--- gnome-desktop-2.6.1/Makefile.am 2004-02-04 21:23:35.000000000 +1300 |
|
666 |
+++ gnome-desktop-2.6.1-hacked/Makefile.am 2004-06-08 13:11:31.000000000 +1200 |
|
2465 | 667 |
@@ -1,3 +1,9 @@ |
668 |
+ |
|
669 |
+XML_IN_FILES= gnome-version.xml.in |
|
670 |
+XML_FILES = $(XML_IN_FILES:.xml.in=.xml) |
|
671 |
+versiondir=$(datadir)/gnome-about |
|
672 |
+version_DATA= $(XML_FILES) |
|
673 |
+ |
|
674 |
SUBDIRS = \ |
|
675 |
po \ |
|
676 |
libgnome-desktop \ |
|
677 |
@@ -8,8 +14,8 @@ |
|
678 |
man |
|
679 |
||
680 |
EXTRA_DIST = \ |
|
681 |
- gnome-version.xml.in.in \ |
|
682 |
- gnome-version.xml \ |
|
683 |
+ $(XML_IN_FILES) \ |
|
684 |
+ $(XML_FILES) \ |
|
685 |
gnome-desktop.spec.in \ |
|
686 |
gnome-desktop.spec \ |
|
687 |
COPYING-DOCS \ |
|
688 |
@@ -19,6 +25,7 @@ |
|
689 |
intltool-merge.in \ |
|
690 |
intltool-update.in |
|
691 |
||
692 |
-versiondir=$(datadir)/gnome-about |
|
693 |
-version_DATA=gnome-version.xml |
|
694 |
+ |
|
695 |
+ |
|
696 |
+ |
|
697 |
@INTLTOOL_XML_RULE@ |