[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: Re: Bug in GtkTreeView or programming bug?
From: Daniel Leidert <daniel.leidert.spam () gmx ! net>
Date: 2009-09-16 20:56:01
Message-ID: 1253134561.5831.6.camel () leidi
[Download RAW message or body]
Am Mittwoch, den 16.09.2009, 21:57 +0200 schrieb Daniel Leidert:
> Am Mittwoch, den 16.09.2009, 08:07 +0200 schrieb Kristian Rietveld:
> > 2009/9/14 Daniel Leidert <daniel.leidert.spam@gmx.net>:
> > > In Debian the test suite of perl-gtk2 failed [1]. Examining the
> > > situation a bit further it seems, that even after setting a cursor, the
> > > reurned path from gtk_tree_view_get_cursor() is NULL. I tried to write s
> > > short program to reproduce this in C (attached). When I run it get:
> >
> > Seems the attachment got dropped?
>
> Doh! Attached.
Seems the mailing list eats the attachement. Hope you received it in
private. Otherwise here the code quoted inline.
Regards, Daniel
/--------------------------- test.c ----------------------------------
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
GtkWidget *mainwin;
GtkTreePath *path, *testpath;
GtkTreeView *view;
GtkTreeViewColumn *testcol;
gtk_init (NULL, NULL);
view = (GtkTreeView *)gtk_tree_view_new();
path = gtk_tree_path_new_from_string("1:0");
gtk_tree_view_set_cursor(view, path, NULL, 0);
gtk_tree_view_get_cursor(view, &testpath, &testcol);
printf("path=%s\n",gtk_tree_path_to_string(testpath));
exit(0);
}
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic