File gnome-panel-bnc363981-intlclock-compatibility.patch of Package gnome-panel

diff -Naur gnome-panel-2.22.0/applets/clock/clock.c gnome-panel-2.22.0.patched/applets/clock/clock.c
--- gnome-panel-2.22.0/applets/clock/clock.c	2008-03-10 21:45:01.000000000 +0100
+++ gnome-panel-2.22.0.patched/applets/clock/clock.c	2008-04-09 10:56:48.637285000 +0200
@@ -4140,7 +4140,9 @@
 {
 	gboolean retval = FALSE;
 
-	if (!strcmp (iid, "OAFIID:GNOME_ClockApplet"))
+	if (!strcmp (iid, "OAFIID:GNOME_ClockApplet") ||
+	    !strcmp (iid, "OAFIID:IntlClockApplet") ||
+	    !strcmp (iid, "OAFIID:GNOME_ClassicClockApplet"))
 		retval = fill_clock_applet (applet);
 
 	return retval;
diff -Naur gnome-panel-2.22.0/applets/clock/GNOME_ClockApplet_Factory.server.in.in gnome-panel-2.22.0.patched/applets/clock/GNOME_ClockApplet_Factory.server.in.in
--- gnome-panel-2.22.0/applets/clock/GNOME_ClockApplet_Factory.server.in.in	2008-03-10 21:45:01.000000000 +0100
+++ gnome-panel-2.22.0.patched/applets/clock/GNOME_ClockApplet_Factory.server.in.in	2008-04-09 10:56:45.284638000 +0200
@@ -32,4 +32,40 @@
 	<oaf_attribute name="bugzilla:other_binaries" type="string" value="clock-applet"/>
 </oaf_server>
 
+<oaf_server iid="OAFIID:IntlClockApplet"
+	    type="factory" 
+	    location="OAFIID:GNOME_ClockApplet_Factory">
+
+	<oaf_attribute name="repo_ids" type="stringv">
+		<item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
+		<item value="IDL:Bonobo/Control:1.0"/>
+		<item value="IDL:Bonobo/Unknown:1.0"/>
+	</oaf_attribute>
+	<oaf_attribute name="name" type="string" _value="Clock"/>
+	<oaf_attribute name="description" type="string" _value="Get the current time and date"/>
+	<oaf_attribute name="bugzilla:bugzilla" type="string" value="GNOME"/>
+	<oaf_attribute name="bugzilla:product" type="string" value="gnome-panel"/>
+	<oaf_attribute name="bugzilla:component" type="string" value="clock"/>
+	<oaf_attribute name="bugzilla:version" type="string" value="@VERSION@"/>
+	<oaf_attribute name="bugzilla:other_binaries" type="string" value="clock-applet"/>
+</oaf_server>
+
+<oaf_server iid="OAFIID:GNOME_ClassicClockApplet"
+	    type="factory" 
+	    location="OAFIID:GNOME_ClockApplet_Factory">
+
+	<oaf_attribute name="repo_ids" type="stringv">
+		<item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
+		<item value="IDL:Bonobo/Control:1.0"/>
+		<item value="IDL:Bonobo/Unknown:1.0"/>
+	</oaf_attribute>
+	<oaf_attribute name="name" type="string" _value="Clock"/>
+	<oaf_attribute name="description" type="string" _value="Get the current time and date"/>
+	<oaf_attribute name="bugzilla:bugzilla" type="string" value="GNOME"/>
+	<oaf_attribute name="bugzilla:product" type="string" value="gnome-panel"/>
+	<oaf_attribute name="bugzilla:component" type="string" value="clock"/>
+	<oaf_attribute name="bugzilla:version" type="string" value="@VERSION@"/>
+	<oaf_attribute name="bugzilla:other_binaries" type="string" value="clock-applet"/>
+</oaf_server>
+
 </oaf_info>
openSUSE Build Service is sponsored by