Re: unable to have correct signal prototype in documentation.



On Fri, 2002-06-07 at 16:20, Damon Chaplin wrote:

> In GTK+ 1.2 we didn't have types for everything, so a lot of arguments
> would have just been output as 'gpointer' or something similar. That's
> why I added the types. But we shouldn't need them for 2.0.

I meant to add:

It would be easier if GTK+ types used the same names as their C names.

I had to fix get_type_name() a bit in Glade for some of the new types:

  if (!strcmp (type_name, "GtkTypeTextIter"))
    {
      *is_pointer = TRUE;
      return "GtkTextIter";
    }

  if (!strcmp (type_name, "GtkTypeTreeIter"))
    {
      *is_pointer = TRUE;
      return "GtkTreeIter";
    }

  if (!strcmp (type_name, "GtkTypeTreePath"))
    {
      *is_pointer = TRUE;
      return "GtkTreePath";
    }


I thought I'd added it to gtk-doc but it looks like I haven't yet.

Damon





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]