[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-gtk-general
Subject:    [PHP-GTK] Re: [PHP-GTK-DEV] Re: [PHP-GTK] Announcing PHP-GTK-EDGE
From:       "Lars J." <cipherz () slamsoft ! dk>
Date:       2007-02-05 22:31:46
Message-ID: 45C7B052.6010501 () slamsoft ! dk
[Download RAW message or body]

Hello,

As I am working with gtksheet, I was missing a function which I wrote 
(nothing really, after some help though..), but here is the patch which 
creates gtksheet->get_active_cell and it works perfectly here (it was 
made against the newest php-gtk-edge)

hope it can be useful for something :)

Best regards
   Lars

Andrei Zmievski wrote:
> On Jan 30, 2007, at 8:42 AM, Anant Narayanan wrote:
>> Uh no, what gives you that idea? I didn't want to put those patches in
>> the real CVS (once bitten, twice shy); so I put them somewhere else.
>> When these patches are considered stable enough to be in the main tree;
>> it'll go in.
>
> Are you offering patches or full source tree? Because your message 
> made it sound like it was the latter. I don't have a problem with 
> patches, but having another copy of PHP-GTK source tree, especially 
> one that purports to have the latest bleeding edge enhancements, is 
> not something I like.
>
>> I remember asking in a mail sometime ago (I quote):
>>
>>> Andrei, I've looked through this and can commit a set of patches that
>>> would allow us to build against the latest detected version of Gtk+ on
>>> the user's system (which can also be overridden with the ./configure
>>> switch).
>>
>> I received no green signal from you on this, so I assumed you didn't
>> want 2.10 support to go in yet.
>
> I've sent a couple of replies on this topic to php-gtk-dev and did not 
> get any response to them either, except from Steph, but was a one 
> liner that didn't answer my questions. So we did not come to a 
> consensus on the multi-version builds. As for your patches to the 
> build system, I haven't seen them yet either. If you can send them to 
> the php-gtk-dev mailing list so we can take a look at them, I'd 
> appreciate it.
>
> -Andrei
>


["gtkextra-get_active_cell.patch" (text/plain)]

Index: gtkextra.overrides
===================================================================
--- gtkextra.overrides	(revision 5)
+++ gtkextra.overrides	(working copy)
@@ -179,6 +179,24 @@
 #define GTK_PLOT3_D GTK_PLOT3D
 
 %%
+override gtk_sheet_get_active_cell
+PHP_METHOD()
+{
+	gint row, column;
+
+	NOT_STATIC_METHOD();
+
+	if (!php_gtk_parse_args(ZEND_NUM_ARGS(), ""))
+		return;
+
+	gtk_sheet_get_active_cell(GTK_SHEET(PHPG_GOBJECT(this_ptr)), &row, &column);
+
+	array_init(return_value);
+	add_index_long(return_value,0,(long)row);
+	add_index_long(return_value,1,(long)column);
+}
+
+%%
 constants
 %%
 ignore-glob



-- 
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic