Re-namespacing Pidgin's API for Introspection

Jorge Villaseñor salinasv at gmail.com
Fri Feb 7 16:11:30 EST 2014


On Fri, Feb 7, 2014 at 2:18 PM, Ankit Vani <a at nevitus.org> wrote:

> > I am not sure I have understood the issue but AFAIK we have different
> > namespaces
> > * Pidgin
> > * Purple
> > * Gnt
> > * Finch
> > each of them refering to the specific component.
> >
> > The Gtk namespace is used most of the times when we write a gtkwidget
> which
> > is not shipped by Gtk+ so we maintain it locally (gtkimhtml, as example)
> >
> > The problem is to have this Gtk and Pidgin namespace together? I don't
> think
> > they should be merged since one is referring to gtk widgets and the other
> > one is Pidgin's API.
>
> The way introspection expects it is that everything from libpurple goes
> into the Purple namespace, everything from libgnt into Gnt, pidgin into
> Pidgin and finch into Finch (which I also personally believe is the right
> way), without defining things in the Gtk or Glib namespaces. This would
> allow, for instance, a python plugin to do
> 'from gi.repository import Pidgin' and use Pidgin.Whatever stuff.
>
> The distinction you are suggesting can be handled by something like
> PidginGtkWebView instead of GtkWebView, if really needed. Still,
> PidginWebView still sounds cleaner. The generated gtk-doc docs will show a
> type heirarchy for GObjects, widgets etc.
>

Mmm I ask old developers, this gtk_* widget were supposed to be sent to
Gtk+ to be integrated upstream? I always thought that was the idea, we
maintain them in the meantime they accept the widgets, if they were not
merged we keep maintaining them.

Is this somehow true? If the plan is to always maintain this widgets as
part of Pidgin, I will +1 to change the naming to Pidgin specific.

>
> Moreover, I don't think it makes sense that things being gtk widgets
> should belong to the gtk namespace regardless of them not being a part of
> gtk. It sounds like renaming PurpleAccount into GAccount or something
> after making it a GObject is necessary (stupid comparision, I know).
>



-- 
Masca

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pidgin.im/pipermail/devel/attachments/20140207/5ebb65fd/attachment-0001.html>


More information about the Devel mailing list