code

Tag for posts containing code.

Firefox-style button with a pop-up menu

(Clearly I've been neglecting my blog for the last couple of months. To try and change that, I'll start with this small post, just to get the ball rolling again.)

If it is unclear from the title, the Firefox widget I'm talking about is the toolbar buttons you get in the bookmarks toolbar that pops up a menu when you click it. I just wanted to take its functionality a bit further for Virtaal: Creating a similar widget which is not limited to a toolbar.

Gtk+ Tip of the Day: Modifying the subject of an event being processed

OK, I know that the title is not very clear, so let me give a more complete description of the problem. I'll use the actual case in which it was used as example.

I have a gtk.TextBuffer for which I'm implementing auto-correction. As you can imagine auto-correction would involve changing the text in said TextBuffer. Then I started seeing unexpected (but understandable) behaviour caused by my handler of the TextBuffer's "insert-text" event.

Syndicate content