Re: yap - Gtk2::FileSelector




On 18 Apr 2003, Ross McFarland wrote:

On Thu, 2003-04-17 at 18:24, Chas Owens wrote:
Again, a little thievery and cleaning up.

BTW: should it be considered a bug that $fs->complete doesn't actually
cause the file list to be filtered (you have to hit tab)?  The same thing
happens in Gtk#, so I know it isn't a Gtk-Perl-XS problem.

don't know if this is a bug or not, but after looking at the
gtk2-perl-xs code, it's not at the gtk2-perl-xs level. we have a simple
and straightforward mapping for that function so it's very unlikely we
could be causing the problem. i'll look into it when i get a chance. (at
both levels.) but according to the api doc if i understand what you are
describing it would be a bug.

<patch>
--- Gtk2/xs/GtkFileSelection.xs.orig    2003-04-17 18:10:53.000000000 -0400
+++ Gtk2/xs/GtkFileSelection.xs 2003-04-17 18:18:40.000000000 -0400
@@ -53,3 +53,28 @@
 #gtk_file_selection_get_selections
 #      GtkFileSelction * filesel

+GtkWidget*
+ok_button(fs)
...

this function already exists it's named member_widget (something
generic) since we're using the alias stuff there we preferred not to use
one of the specific members as a name for the function, just for the
sake of being clean.

Must have been added after the snapshot I have (the one from the 15th).


it's great that you're looking at stuff and adding things. it can only
help things get to a mature state faster.

I have taken one of my old Gtk-Perl scripts (from before I started
using Gtk::GladeXML) and am converting it to use Gtk2-Perl-XS.
Everytime I run into something missing or "wrong" (as in no defaults)
I dive into my snapshot and try to figure out how to make it work.
I am mostly comparing the Gtk2-Perl-XS code with the Gtk-Perl code
and cargo culting the code from the later to the former.

Right now I am stuck on Gnome2::Dialog.  It is deprecated, so I am
trying to decided whether it should be implemented with a warning
(to make porting easier) or to change the application code.
Frankly I am lazy, so I will probably change the app code as it
looks easier to do.



if you (by that i mean anyone) get bored and want to work on something
that doesn't require knowledge of XS and perlguts then take a stab at
writing a test in the t/ directory. the main thing we're looking to test
are widgets with functions that have custom XS written. there are
several examples in that directory right now that test out things like
window, button, socket/plug, etc. they should be a very good point of
reference in writing such tests. so for anyone that's made use of
gtk-perl before and can look at the xs files to see what's implemented
and needs testing have at it.

-rm


I will get on this after I finish porting gnome-sql-editor to
gnome2-sql-editor.




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