Re: CList DnD/selection "format" broken?

2001-10-10 Thread Paul Davis
>A button to move the selected item from the clist to wherever you want >to move it to? In general, drag and drop should _only_ be a shortcut, >since it won't be accessible to all users, and is also hard to figure >out that it is present even for users that are fully mouse-1enabled. since my GUI

Re: CList DnD/selection "format" broken?

2001-10-10 Thread Owen Taylor
Paul Davis <[EMAIL PROTECTED]> writes: > >> is this another one of those "oh yeah, CList is totally broken, use > >> 1.3/2.0" type errors > > > >Got it in one. (Well, at least for something complicated like > >trying to drag and drop from a clist to elsewhere. You can > >look at the gmc code if

Re: CList DnD/selection "format" broken?

2001-10-10 Thread Paul Davis
>pardon my french, but f*ck. my apologies to any french speakers for my unthinking propagation of this old anglo jest about language. --p ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: CList DnD/selection "format" broken?

2001-10-10 Thread Paul Davis
>> is this another one of those "oh yeah, CList is totally broken, use >> 1.3/2.0" type errors > >Got it in one. (Well, at least for something complicated like >trying to drag and drop from a clist to elsewhere. You can >look at the gmc code if you want to see how someone managed >to get this work

Re: CList DnD/selection "format" broken?

2001-10-10 Thread Owen Taylor
Paul Davis <[EMAIL PROTECTED]> writes: > In gtkclist.c in GTK+ 1.2.8, we have: > > gtk_selection_data_set (selection_data, selection_data->target, > GTK_TYPE_POINTER, (guchar *) &ret_info, > sizeof (GtkCListCellInfo)); [..

CList DnD/selection "format" broken?

2001-10-10 Thread Paul Davis
In gtkclist.c in GTK+ 1.2.8, we have: gtk_selection_data_set (selection_data, selection_data->target, GTK_TYPE_POINTER, (guchar *) &ret_info, sizeof (GtkCListCellInfo)); But the reference says: gtk_selection_data_set

problems with pixmaps widget

2001-10-10 Thread Flavio Alberto Lopes Soares
Hello, I have a problem with widget pixmaps, I need change the picture in a pixmap widget in some moment in my application, but I don't know how to make this, I think to copy x & y coordinates and other properties of this pixmap, destroy it and re-create it with new picture with old properties, b

Re: gtk-bin.c error when using frames

2001-10-10 Thread Dinesh Nadarajah
I found it: gnome_app_set_contents(GNOME_APP(window), frame); Thanks. >From: "Dinesh Nadarajah" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >CC: [EMAIL PROTECTED] >Subject: Re: gtk-bin.c error when using frames >Date: Wed, 10 Oct 2001 10:04:11 -0500 > >I tried a couple of things. I forgot to me

Re: gtk-bin.c error when using frames

2001-10-10 Thread Dinesh Nadarajah
I tried a couple of things. I forgot to mention that this is a Gnome app. When I did this: //topLevelWindow = gnome_app_new("gnomewin", "Gnome Window"); topLevelWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); (commented out the gnome part and created a simple GTK window it worked). But

Re: gtk list bug?

2001-10-10 Thread Havoc Pennington
Hi, GtkList is limited to a small number of items, because it uses an X window to put them inside, and X windows have 16-bit signed integers for coordinates. So you are looking at 32K pixels maximum for GtkList. GtkCList avoids this problem. GTK 2 has an extremely elaborate hack to make GdkWind

Re: gtk-bin.c error when using frames

2001-10-10 Thread Paul Davis
>Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion >`bin->child == NULL' failed. you're attempting to add two children to a GtkBin object. you can't do that. check the places where you call gtk_container_add(). --p ___ gtk-list mailin

Re: gtk-bin.c error when using frames

2001-10-10 Thread Skip Montanaro
Dinesh> // create source frame Dinesh> frame = makeFrame(); Dinesh> gtk_container_add(GTK_CONTAINER(topLevelWindow), frame); Try gtk_container_add(GTK_CONTAINER(frame), topLevelWindow); instead... Gtk is an object-oriented programming system implemented in C. Metho

gtk-bin.c error when using frames

2001-10-10 Thread Dinesh Nadarajah
Hi: I get the following error when I try to use frames to pack widgets. It is just a test application I wrote to learn GTK/GNOME programming: Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion `bin->child == NULL' failed. Below is the code I used. It's mostly from this book t

Re: gtk_tree_selection_selected_foreach example?

2001-10-10 Thread Skip Montanaro
>> Does someone have a fairly simple example of using >> gtk_tree_selection_selected_foreach? ... vishnu> Is this simple enough? ... Yes, thanks. I guess it supports my suspicion that GtkTreeIters are opaque goodies and are going to be of no use to a Python programmer, no mat

gtk list bug?

2001-10-10 Thread Mikethecarney
Has anyone else noticed a bug in gtklist and gtkscrolled window that stops the scroll bar from working correctly? If too many entries are added to the list (I believe it's a memory error so the exact number is depenedant on the size of the object being added to the list) the scrollbar still a

Re: GtkNotebook Sloppy Focus

2001-10-10 Thread Neil Bird
Daniel Erat wrote: > I think that one way to do this would be something like the following (this > very well may have bugs... I haven't tested it, but it's similar to some of > the code that I'm using for draggable tabs): > > gtk_widget_add_events (notebook, GDK_POINTER_MOTION_MASK); I don't