I'm currently writing Python bindings for the GtkExtra widget set
which is available at http://magnet.fsu.edu/~feiguin/gtk/.

Most of the work is done but I have two questions.

1. The C header file is called gtkextra.h therefore I called the
Python module gtkextra.py.  On non-posix systems this name may conlict
with GtkExtra.py.

Should I use gtkextra.py or should I use libgtkextra.py?

2. Like gtk_clist_get_selection_info(w, x, y) the function
gtk_sheet_get_pixel_info(w, x, y) returns None if the user clicked
outside of the cells.

On the other hand the functions gtk_sheet_get_active_cell(w) and
gtk_color_combo_find_color(w, color) return (-1, -1) as row and column
if no cell is active or the specified colour could not be found.

The C prototypes of the functions mentioned are:

void gint gtk_sheet_get_pixel_info(GtkSheet *, gint x, gint y,
                                   gint *row, gint *col);

void gtk_sheet_get_active_cell(GtkSheet *, gint *row, gint *col);

void gtk_color_combo_find_color(GtkColorCombo *, GdkColor *,
                                gint *row, gint *col);

I'm wondering if it wasn't better to return None instead of (-1, -1)
in order to be consistent with gtk_clist_get_selection_info().

What do you think?
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to