Older blog entries for snorp (starting at number 11)

So, I've switched from Debian unstable to RedHat 8.0. I am pretty happy with it. I think the availability of apt for RH is what eventually pushed me over the edge.


Mark reviewed my recent-files code, and gave me some good comments/criticism. He even did some cleanup/optimization work for me. So now, hopefully, he will accept my panel patch adding the recent docs menu. I'm starting to get a little nervous now about the recent-files stuff actually making it in to 2.2. It still hasn't been moved to a stable library yet, and also the feature freeze for 2.2 is coming up rapidly. AFAIK, only 2 apps are using this code, and that's only because I patched them myself. If it doesn't make it, it's only my fault, but I've been working on this for like 6 months so it's kind of pathetic. :/

I implemented a sidebar for nautilus that displays the available emblems, and lets you drag them to files/folders. You can also drag random images from the file manager to the sidebar to add those images as an emblem. Alex helped out a lot with this....he is so cool. Today, I made it work with web browsers (so you can dnd an image or a link to one to add it as an emblem). This limited amount of nautilus hacking was really fun. I want to do more, something less trivial, but haven't really thought of much yet.


I've added some cool stuff to the recent-files code. alex has converted nautilus to use the icon theme spec, and has also written some code that lets you get the properly themed nautilus icon for a given mime type. This kicks ass, since now I am able to have icons in the recently-used menus. I have to wait to commit this, though, since there is a pending GEP to get Alex's code moved into libgnomeui (sigh). Also, I've moved a bunch of stuff from eel-vfs-extensions into gnome-vfs, so now I'm able to use all the nifty string URI manipulation functions to (hopefully) fix the nasty UTF-8/unescaping issues I was having.

15 Sep 2002 (updated 15 Sep 2002 at 07:22 UTC) »

Did some more panel hacking, and came up with some patches that add recent item menus for both applications and documents. I think it looks pretty good. Also, removed the libuuid dependency, so that should make things go down a little smoother.


Added IR remote support to Rhythmbox and Totem. I used lirc for rhythmbox, and it was a _bitch_ to set up. Sadly, even though having the IR stuff is cool, hackers are probably the only people that will be able to make it work. Also, squeezed my recent-file code into totem, so hopefully it will get some more exposure that way. While doing this, I discovered that the gtk view is totally borked if you have GtkImageMenuItemS in the menu. I definitely need to fix it, but I am apparently too lazy....


I implemented monitoring for EggFileSystem, and did some gedit hacking. Paolo has managed to recruit some more developers on gnome-love, and I've talked to some interested parties on IRC. This is good, since I am starting school again next week and won't have much time. Plus, it seems to be increasingly more difficult for me to be productive at all anymore, so maybe some others can help pick up the slack.


Ok, so using a property on the root window for notification was a bad idea. I switched it back to file monitoring. It works ok, I guess (found a workaround for the multiple notification thing). I have updated the spec finally, and also committed my current code to libegg. I suppose the next step is to get people to use it so we can see what kind of API problems and bugs they run into.

One thing I would like to add to the recent-files stuff is the ability to have the icon associated with the mime-type of the file appear in menus. What I really want is to be able to get the themed icon that nautilus uses, but that doesn't look to be possible without copy/pasting a large portion of nautilus. Supposedly, Seth has some metadata API to add to gnome-vfs that will include this stuff. So, I guess I will have to wait.

Sadly, no gedit hacking lately. I should do some tonight. I have some bugs to fix in the BonoboObject interfaces.

While I was poking around in libegg, I looked at andersca's fileselector/filesystem stuff. Most of it seemed pretty straight-forward to me. I quickly banged out a gnome-vfs filesystem object and it seemed to work well. The new file selector is going to kick ass.

Oh yeah, I also hacked together a patch to add a "Recent Documents" menu into the panel. Of course, the test apps are the only thing that put stuff in there now, so it is not terribly useful.

More progress in gnome-recent, albeit slow. I implemented a semi-non-broken notification mechanism. Previously, it was just monitoring the file with gnome-vfs, but that sucked since I was getting two notifications per single change (truncate, write). Not good if you have a big list. Now, I just use a PropertyChange X event on the root window for notification. It works well, but the bad part is, GnomeRecentModel now requires an X connection, and depends on gdk. Sigh. Maybe it will end up being ok though. Also, I thought about adding some API that allows filtering the list based on URI scheme. This would allow you to see only the recent mails sent, or only the recently used ftp servers, etc. Maybe that would be useful.


I am finished with school for this summer session. I am pretty happy, since for once I got decent grades. Only a brief respite though until the 18 credit hour marathon I have coming up in september.........I can't wait to graduate.


I've added a semi-cool feature to gedit that's similar (if not identical) to the "bookmark" feature in TextPad (I think kate also has it). I developed a healthy hatred for the GtkTextView API for drawing stuff in the borders in the process. I am not totally sure what I would do to improve it, but if you want to have any flexibility in the stuff you draw in the border, the current API is difficult to use. I need to find a way to make it better so plugins can put stuff in the border too. I had a mega-crack idea for a feature in gedit: vi key bindings. I'm not sure how far I would take it though (probably just the very basic editing features), and I'm not even sure I would use it. I actually don't use gedit that much at all, since it doesn't do syntax highlighting or auto-indent yet (but it will soon!!)

My gnome-recent stuff is coming along well lately too. I've updated the recent-file spec to use an XML document for storage, so I'll be submitting that to the freedesktop.org guys again soon. Hopefully some more people will comment on it this time. One of my key concerns right now is performance. If the list gets to be really large (like > 1000 items), it takes a while (almost 0.5 secs) to do inserts. Reading the list is almost as bad. I would like to use a separate thread for this part of it to avoid blocking the GUI, but I haven't yet found a way to use threads in GTK without totally horking things. I am obviously doing something wrong.


Lots of stuff happening lately. I got some great comments about gnome-recent on mailing lists, and it was suggested that we create a standard that all desktops use to store this kind of stuff. I think this is good idea, and I hope we can get the KDE folks and others onboard for this. Not that having a standardized list of recently used files is such a huge priority, but it has kind of fallen in my lap and I want to see it through. I've written a preliminary specification . I'm going to mull it over some more though before sending it to xdg-list. I have also converted gnome-recent to adhere to this spec, as both a proof of concept and "lead by example" sort of thing.

Sadly, I've been neglecting gedit stuff still. Paolo notified me of several bugs that were my fault. I fixed some of them, but others are still left. Sigh. Basically, I need to be a lot more careful about screwing around with text - like converting to/from UTF-8 when needed.


I saw a few messages on mailing lists about the file selector for 2.2. I think a lot of people want to offer opinions and/or hack on it, but for some reason no one has said "I'm doing the file selector." Consequently, I think we will have like 900 implementations floating around with different APIs and features. How many of you have been secretly coding on a file selector? I hope someone steps up. BTW, I happen to think that gnome-recent would work well for storing bookmarks :). That reminds me. I've mailed andersca at least three times now in the last 6 months about getting gnome-recent into libgnomeui, but have never received a reply. I mean, if he's busy, that's alright....but what does a guy have to do?

I did some gedit hacking last week. Fixing some bugs here and there. Paolo bounced a couple of my patches though (more than once!). I really need to be more thorough.....


Philosophy has turned out to be kind of interesting. We are reading "Phaedrus", by Plato. It's hard stuff to read (for me, at least).

2 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!