Re: GtkBuildable type resolver
- From: Owen Taylor <otaylor redhat com>
- To: Markku Vire <markku vire iki fi>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>, Johan Dahlin <jdahlin async com br>, Christian Robottom Reis <kiko async com br>
- Subject: Re: GtkBuildable type resolver
- Date: Tue, 05 Jun 2007 11:23:36 -0400
On Mon, 2007-06-04 at 23:00 +0300, Markku Vire wrote:
> Hi,
>
> I faced similar scenario while writing a tiny gobject code generator.
> I ended up to use similar techinique than your second alternative. It
> works nicely in 99% of the cases, but cannot handle cases like:
>
> GtkIMContext => gtk_i_m_context_get_type != gtk_im_context_get_type
>
> Otherwise this would be a nice way to force everybody to use GObject
> naming conventions ;)
Actually, GtkIMContext fits the standard naming rules we have for
mixed-case names:
They are something like:
NAME := INITIAL_WORD WORD+
INITIAL_WORD := [A-Z][a-z0-9]*
WORD := [A_Z]{2,} | [A-Z][a-z0-9]+
So:
GString => g_string
GtkCTree => gtk_ctree
GtkIMContext => gtk_im_context
GdkRGB => gtk_rgb
- Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]