Applying for Gnome Foundation Membership

Today, I fill my application for a Gnome Foundation Membership, since they’re not adding blogs to Planet Gnome without a membership, it’s kinda forced. My point is not that I don’t want, is that sometimes I think I’m not worthy of a membership yet. I’ve done too little in my opinion.
So, let’s see how it goes.

New Link Dialog Into Gnome-contacts

Well, it seems I’m fully contributing to gnome-contacts now.

… that was the start of this blog post a few weeks ago, the work got me in the middle and the post got stuck at draft stage til today. So

In these previous weeks, I got the new link dialog mockups made by Allan Day into the code. After some hacking to the undo part well. I uploaded the patches into bugzilla for review. Here’s the mandatory screenshot

After that I went into getting crop support for setting an avatar for a contact. Here I had to came up with some design, since Alex and Allan have not agreed anything on these. I took the crop widget from gnome-control-center code, and tweaked the vapi file to load the widget. Now when you use a picture with more than 128 x 128 pixels as avatar the crop widget come up to allow you to select what you want of that pics. The crop widget only allow for square crop. Here the screenshot is this one:

Right, now, I’m kinda frozen. There’s still a lot of stuff to be done. We’ll set to it soon.

Undo Support Goes Into Gnome-contacts

As of today I uploaded a patch to gnome-contacts to support undo for delete operation.

After a bunch a fixes and reviews from contacts developer Alexander Larsson the patch went up to master. The notification looks good, tough it can become even better, I’ve already saw two mockups with ways to improve it a little bit. Here’s a picture:

This shot shows the new Contact.Pane design work of Alex & Allan.

So, I have to thxs Alex and Allan, and a bunch of people who’s been helping me to get this out, eve people from Gtk, Benjamin Otte, Emmanuele Bassi and others.

Hope this contribution don’t be the last one. And really hope the notification widget would be included into others gnome apps.

Git on Steroids

Since I’ve started developing for a company business I’ve been using version control systems and for my own projects I choose for git.

Why choose git over others, for was a bunch of simple reason:

  • I needed to have a full record of the project, and git is a distributed revision control system, that’s fits.

  • I tried subversion before, and the branchs management in subversion is lousy, actually there’s no branch management, there’s just copy to other place, then overwrite/merge. Git branch management is wonderful.

  • Lastly, I had to decide between bazaar, Ubuntu’s child, mercurial, and git. This was an easy one, who uses git, Gnome Project the linux kernel, and github.com, the mighty Octocat, that’s a big win for git.

So far, I haven’t regretted on my choice, and I don’t think I ever will.

Tips and Links

Open Source Software Is Green

A few days ago I read post about FOSS being green or not. Since open source is about reusing/improving stuff made by others you could surely say, yes, FOSS is green indeed.

Then I found this, what a better prove !!!

[sourcecode language=”cpp”] gnome_bluetooth_headers_to_scan_for_enums = bluetooth-enums.h

Generate the enums source code, with glib-mkenums:

This is based on the same Makefile.am stuff in pango:

gnome_bluetooth_built_headers = gnome-bluetooth-enum-types.h gnome_bluetooth_built_cfiles = gnome-bluetooth-enum-types.c

gnome-bluetooth-enum-types.h: $(gnome_bluetooth_headers_to_scan_for_enums) Makefile

$(AM_V_GEN) (cd $(srcdir) && glib-mkenums \
        --fhead "#ifndef __GNOME_BLUETOOTH_ENUM_TYPES_H__\n#define __GNOME_BLUETOOTH_ENUM_TYPES_H__\n\n#include \n\nG_BEGIN_DECLS\n" \
        --fprod "/* enumerations from \"@filename@\" */\n" \
        --vhead "GType @enum_name@_get_type (void);\n#define BLUETOOTH_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"     \
        --ftail "G_END_DECLS\n\n#endif /* __GNOME_BLUETOOTH_ENUM_TYPES_H__ */" \
    $(gnome_bluetooth_headers_to_scan_for_enums)) > $@

gnome-bluetooth-enum-types.c: $(gnome_bluetooth_headers_to_scan_for_enums) Makefile gnome-bluetooth-enum-types.h

$(AM_V_GEN) (cd $(srcdir) && glib-mkenums \
        --fhead "#include \n" \
        --fhead "#include \"gnome-bluetooth-enum-types.h\"\n" \
        --fhead "#include " \
            --fprod "\n/* enumerations from \"@filename@\" */" \
        --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"     \
        --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
        --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
    $(gnome_bluetooth_headers_to_scan_for_enums)) > $@

[/sourcecode]

I found myself using this, so my comments after this goes:

This is based on the same Makefile.am stuff gnome-bluetooth, which is based on the same stuff in pango