After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 171911 - Patch to provide dbus feed subscription to blam
Patch to provide dbus feed subscription to blam
Status: RESOLVED FIXED
Product: blam
Classification: Other
Component: General
1.6.x
Other All
: Normal enhancement
: ---
Assigned To: Mikael Hallendal
Mikael Hallendal
Depends on:
Blocks:
 
 
Reported: 2005-03-28 21:30 UTC by Raphael Slinckx
Modified: 2005-06-20 20:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
blam-dbus-subscription.patch (3.49 KB, patch)
2005-03-28 21:32 UTC, Raphael Slinckx
none Details | Review
DBusFeedReader.cs (704 bytes, text/plain)
2005-03-28 21:34 UTC, Raphael Slinckx
  Details
blam-dbus-subscription.patch (3.26 KB, patch)
2005-04-05 20:37 UTC, Raphael Slinckx
none Details | Review
Patch as commited. (5.91 KB, patch)
2005-06-20 17:20 UTC, Mikael Hallendal
none Details | Review
blam.patch (3.17 KB, patch)
2005-06-20 18:30 UTC, Raphael Slinckx
none Details | Review

Description Raphael Slinckx 2005-03-28 21:30:38 UTC
I am currently writing a plugin for epiphany that allows to parse rss
feeds in the page you are viewing and "subscribe" to the page's feed.

I went on the dbus road, so epiphany do a remote call on dbus to
subscribe the feed in the program that answer the call (of course the
reader has to run for it to accept the method call).

I modified autotools so that dbus compilation is
optional, and if not requested then the corresponding files are not
built.
Comment 1 Raphael Slinckx 2005-03-28 21:32:05 UTC
Created attachment 39360 [details] [review]
blam-dbus-subscription.patch

The patch to cvs blam
Comment 2 Raphael Slinckx 2005-03-28 21:34:06 UTC
Created attachment 39361 [details]
DBusFeedReader.cs

This is to be added in blam/src/
Comment 3 Raphael Slinckx 2005-03-28 21:36:56 UTC
For more info see epiphany bug
http://bugzilla.gnome.org/show_bug.cgi?id=171908
Comment 4 Mikael Hallendal 2005-03-30 09:54:55 UTC
-	$(CSC) -lib:rss $(RESOURCES) $(BLAM_LIBS) $(ASSEMBLIES) $(BLAM_CSFILES)
$(GENERATED_CSFILES) -o $@
+	$(CSC) -lib:rss -pkg:dbus-sharp $(DBUS_CSFLAGS) $(RESOURCES) $(BLAM_LIBS)
$(ASSEMBLIES) $(BLAM_CSFILES) $(GENERATED_CSFILES) -o $@

I think the -pkg:dbus-sharp part should be in the $ASSEMBLIES variable if and
only if the user explicitely said he wanted D-BUS support.

Otherwise the patch and DBusFeedReader.cs looks fine, can't really comment on
the D-BUS bindings for C#, never used them.

Think you could look into the issue with the -pkg:dbus-sharp line as commented
above (or if I misunderstood, tell me I'm a dofus :)
Comment 5 Raphael Slinckx 2005-04-05 20:37:47 UTC
Created attachment 39723 [details] [review]
blam-dbus-subscription.patch

You're not a dofus, great news :)

So i changed so now it should be ok, the -pkg was completely unnecessary, and
also now it tries to enabe DBUS by default, and if not available, disable it.

Is this ok ?
Comment 6 Raphael Slinckx 2005-05-03 22:03:27 UTC
Hi there, just to signal that the extension has been integrated in cvs, and is
ready to be shipped with next major release of epiphany.

It would be great to also have support on your part at that time :)
Comment 7 Raphael Slinckx 2005-05-04 14:49:17 UTC
Quick note:

These lines in the DBusFeedReader should be changed:

[DBus.Interface ("org.gnome.rss.FeedReader")]
abstract class DBusFeedReaderProxy
{
	public static string Service = "org.gnome.rss.FeedReader";
	public static string ObjectPath = "/org/gnome/rss/FeedReader";
[...]

into:

[DBus.Interface ("org.gnome.feed.Reader")]
abstract class DBusFeedReaderProxy
{
	public static string Service = "org.gnome.feed.Reader";
	public static string ObjectPath = "/org/gnome/feed/Reader";
[...]

Thanks!	
Comment 8 Tom von Schwerdtner 2005-05-13 21:07:33 UTC
It would be nice to see this in blam, even if it's only a configure time 'opt
in' option.
Comment 9 Mikael Hallendal 2005-06-20 17:20:29 UTC
Created attachment 48049 [details] [review]
Patch as commited.
Comment 10 Mikael Hallendal 2005-06-20 17:21:00 UTC
I commited the patch to CVS, please check if it works as expected.
Comment 11 Raphael Slinckx 2005-06-20 18:30:31 UTC
Created attachment 48051 [details] [review]
blam.patch

Well the patch you committed was quite not correct ;)

This should fix it!

Thanks
Comment 12 Mikael Hallendal 2005-06-20 19:59:52 UTC
Feel free to commit.