Re: Bug in GtkTreeView or programming bug?
- From: Daniel Leidert <daniel leidert spam gmx net>
- To: Kristian Rietveld <kris gtk org>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Bug in GtkTreeView or programming bug?
- Date: Wed, 16 Sep 2009 22:56:01 +0200
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]