logo       

Re: GtkTreeView get_cursor patch: msg#00138

Subject: Re: GtkTreeView get_cursor patch
Adam try to run the script with gdb and view the backtrace (bt command)

On 2/27/06, Adam Lebsack <adam@xxxxxxxxxxxx> wrote:
>
> Andrei,
>
> That function is casing a segfault now....  After calling it a couple
> times, it just crashes the program.  My version didn't do this, and I
> struggled to figure out why, but couldn't.  That's probably why my
> code was a bit ugly.  :)
>
> Got any ideas?
>
> Thanks,
> Adam
>
> On Feb 23, 2006, at 10:00 PM, Andrei Zmievski wrote:
>
> > Applied, with some modifications.
> >
> > -Andrei
> >
> >
> > On Feb 14, 2006, at 8:57 AM, Adam Lebsack wrote:
> >
> >> Hey guys,
> >>
> >> 've been doing some development with php-gtk2 and I needed a
> >> function implemented, so I uhhh...  implemented it.  It's
> >> GtkTreeView::get_cursor.
> >>
> >> I've included the patch.  Could we get this override into the CVS
> >> tree?  Thanks!
> >>
> >> Adam Lebsack
> >>
> >> --- php-gtk/ext/gtk+/gtktreeview.overrides   2006-02-13
> >> 20:09:54.000000000 -0700
> >> +++ php-gtk.patched/ext/gtk+/gtktreeview.overrides   2006-02-10
> >> 16:39:30.000000000 -0700
> >> @@ -1020,6 +1020,32 @@
> >> }
> >> %%
> >> +override gtk_tree_view_get_cursor
> >> +PHP_METHOD
> >> +{
> >> +        GtkTreePath *path = NULL;
> >> +        GtkTreeViewColumn *column = NULL;
> >> +        zval *php_path = NULL, *php_column = NULL;
> >> +
> >> +        NOT_STATIC_METHOD();
> >> +        gtk_tree_view_get_cursor(GTK_TREE_VIEW(PHPG_GOBJECT
> >> (this_ptr)), &path, &column);
> >> +
> >> +        array_init(return_value);
> >> +        if (path) {
> >> +                phpg_tree_path_to_zval(path, &php_path TSRMLS_CC);
> >> +                phpg_gobject_new(&php_column, (GObject*)column
> >> TSRMLS_CC);
> >> +
> >> +                array_init(return_value);
> >> +                add_next_index_zval(return_value, php_path);
> >> +                add_next_index_zval(return_value, php_column);
> >> +        } else {
> >> +                RETURN_FALSE;
> >> +                //MAKE_STD_ZVAL(php_path);
> >> +                //MAKE_STD_ZVAL(php_column);
> >> +        }
> >> +}
> >> +
> >> +%%
> >> add-arginfo GtkTreeView get_path_at_pos
> >> static
> >> ZEND_BEGIN_ARG_INFO(ARGINFO_NAME, 0)
> >>
> >>
> >>
> >> --
> >> PHP-GTK Development Mailing List (http://gtk.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > PHP-GTK Development Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP-GTK Development Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe