Scroll WIndow with GtkTreeView

2006-04-20 Thread Sailaxmi korada
Hi folks, In my application, I'm placing my TreeView widget in a scrolled window. When I'm scrolling down the list, my headers are getting scrolled up, so they are no more visible. Is there any way to retain the headers in the visible area of the window. Thanks in advance Regards Sai Laxmi __

Re: Howto really debug gdk_x_error?

2006-04-20 Thread Santhosh
Are you using threads? If so... You may have to protect the gtk calls you make inside the timeout function using gtk_threads_enter/leave() pair... I haven't bothered to look into the long backtrace... So it is just an assumption... timeout functions are not called within the GTK lock. timeout_fn(

Re: Random Number of Buttons

2006-04-20 Thread 3saul
OK what I'm trying to do is this: 1. Read a directory full of images (the images in the directory will change) 2. Create a table with the correct number of cells. 3. Put a button in each cell with an image on it from the directory 4. In the cell below the image put the name of the file on a label

Re: can't ercieve data passed to g_signal_connect

2006-04-20 Thread David Necas (Yeti)
On Thu, Apr 20, 2006 at 08:25:57PM +0100, rachit goel wrote: > i am having a problem You have the problem... > i just can't recieve the data passed to signal handler using > g_signal_connect() . > it always gets messed up. ...you did not post enough information. What's your code? Yeti -- T

can't ercieve data passed to g_signal_connect

2006-04-20 Thread rachit goel
hi, i am having a problem i just can't recieve the data passed to signal handler using g_signal_connect() . it always gets messed up. plz its rather critical for me at this stage any help will be appreciated also i am using gtk-2.6.7 on fc4-i386 --

Re: Copy GtkListStore

2006-04-20 Thread Dubravin Andrey
20/04/2006 в 16:20 +0200, David Necas (Yeti) wrote: > On Thu, Apr 20, 2006 at 05:42:51PM +0400, Dubravin Andrey wrote: > > How to create copy of GtkListStore, not object reference? Need to create > > copy of all data in GtkListStory. > > Get the number of columns with gtk_tree_model_get_n_columns(

Re: ExtTextOut + Pango question

2006-04-20 Thread Behdad Esfahbod
On Thu, 20 Apr 2006, nerdy wrote: > Hello, > > I would like to know if there is any provision in pango to > display a given text within a given clipping rectangle and > starting at given position. Something like the the ExtTextOut > function in MFC Windows API. Pango itself doesn't do cliping, bu

Re: Copy GtkListStore

2006-04-20 Thread David Necas (Yeti)
On Thu, Apr 20, 2006 at 05:42:51PM +0400, Dubravin Andrey wrote: > How to create copy of GtkListStore, not object reference? Need to create > copy of all data in GtkListStory. Get the number of columns with gtk_tree_model_get_n_columns() and their types with gtk_tree_model_get_column_type(), creat

Copy GtkListStore

2006-04-20 Thread Dubravin Andrey
Hello! How to create copy of GtkListStore, not object reference? Need to create copy of all data in GtkListStory. -- Dubravin Andrey <[EMAIL PROTECTED]> ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/list

Gtk window repaint fails

2006-04-20 Thread Tomas Olofsson
I have a problem that I hope that someone can help me with. I have written a program that use maps and draw on them after the user has made an query to a db. When I call a function that searches the db and then repainted the map (Gtk.Image), the gtk program does not update itselfs automaticly an

Re: Random Number of Buttons

2006-04-20 Thread 3saul
You've solved my problem once more...and with much laughter! I told you last time I'm a beginner *lol* -- View this message in context: http://www.nabble.com/Random-Number-of-Buttons-t1480088.html#a4006487 Sent from the Gtk+ - Apps Dev forum at Nabble.com. ___

Re: Random Number of Buttons

2006-04-20 Thread John Cupitt
On 4/20/06, 3saul <[EMAIL PROTECTED]> wrote: > I'm wanting to know the best way to declare a random number of buttons for my > gtk app. The number will changed depending on the argument passed to my app. Just use an array of GtkWidget pointers. For example (untested): GtkWidget ** add_buttons( Gt

Re: Random Number of Buttons

2006-04-20 Thread Christian Neumair
Am Donnerstag, den 20.04.2006, 05:02 -0700 schrieb 3saul: > I'm wanting to know the best way to declare a random number of buttons > for my > gtk app. The number will changed depending on the argument passed to > my app. How do you want to arrange them, and what should they contain? -- Christian

Re: Random Number of Buttons

2006-04-20 Thread David Necas (Yeti)
On Thu, Apr 20, 2006 at 05:02:48AM -0700, 3saul wrote: > > I'm wanting to know the best way to declare a random number of buttons for my > gtk app. The number will changed depending on the argument passed to my app. GtkWidget **buttons; buttons = g_new(GtkWidget*, n); for (i = 0; i < n; i++) {

Random Number of Buttons

2006-04-20 Thread 3saul
I'm wanting to know the best way to declare a random number of buttons for my gtk app. The number will changed depending on the argument passed to my app. Thanks -- View this message in context: http://www.nabble.com/Random-Number-of-Buttons-t1480088.html#a4005859 Sent from the Gtk+ - Apps Dev f

ExtTextOut + Pango question

2006-04-20 Thread nerdy
Hello, I would like to know if there is any provision in pango to display a given text within a given clipping rectangle and starting at given position. Something like the the ExtTextOut function in MFC Windows API. BOOL ExtTextOut( HDC hdc, // handle to DC int X,// x-