GtkImageMenuItem size incorrect

2007-05-05 Thread Gaurav Jain
Hi, I'm trying to create some GtkImageMenuItems in the menu of my application, and I found strange sizing issues. I noticed that even if the height of the GtkImage that is added to the menu item is 16 pixels, the actual height of the menu item that is shown on the screen is dependent on the width

Re: GtkImage problem

2007-05-05 Thread beginner.c
As suggested I've done: gtk_image_set_from_file (GTK_IMAGE(image), "/home/s/Pictures/space-05.jpg"); However, the image is no longer displayed and I get these errors (process:7344): GLib-GObject-CRITICAL **: gtype.c:2242: initialization assertion failed, use IA__g_type_init() prior to this fu

Re: Problems with hpaned widget

2007-05-05 Thread Michael Torrie
On Sat, 2007-05-05 at 08:15 +0200, Klay Martens wrote: > Hi all, > First, I am relatively new to GTK, so go easy if this is a complete no > brainer... > I am developing an app for which I would like to use several hpaned and > vpaned widgets (developing in C on Visual C++ 2005 Express). But... > Wh

Re: Simple draw question

2007-05-05 Thread Chris Sparks
I have been able, using GDK, to draw while entering and leaving. One example could be in trying to create a highlight effect as you enter a window. Chris Kevin DeKorte wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Cédric Lucantis wrote: > >> Le samedi 5 mai 2007 00:48, Kevin D

Re: Sorting Integer value treeview column

2007-05-05 Thread Yeti
On Sat, May 05, 2007 at 09:11:20PM +0800, Jason Brisbane wrote: > > Every time I used G_TYPE_INT in the gtk_list_store_new function the > value returned wasnt the INT as expected. The value shown was an 8 digit > number that didnt have any relation to the int as shown in the mysql > client. I b

Re: Simple draw question

2007-05-05 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cédric Lucantis wrote: > Le samedi 5 mai 2007 00:48, Kevin DeKorte a écrit : > > You should never draw anything in an enter/leave callback, but only in an > expose event. Also note that creating/destroying a GC each time you draw it > is very slow,

Re: Sorting Integer value treeview column

2007-05-05 Thread Jason Brisbane
Thanks. Every time I used G_TYPE_INT in the gtk_list_store_new function the value returned wasnt the INT as expected. The value shown was an 8 digit number that didnt have any relation to the int as shown in the mysql client. I believe it was a pointer. So I tried using a double (G_TYPE_DOUBL

Re: Simple draw question

2007-05-05 Thread Cédric Lucantis
Le samedi 5 mai 2007 00:48, Kevin DeKorte a écrit : > Hi, > > I have a situation where I need to highlight an eventbox when a user > enters it and unhighlight it when the users leaves. I'm using this code > but the color I'm drawing in the leave_button_callback is always wrong > and varies from run

Re: Sorting Integer value treeview column

2007-05-05 Thread Yeti
On Sat, May 05, 2007 at 06:20:05PM +0800, Jason Brisbane wrote: > I have a treeview that is populated with an Integer value (from a mysql > database) that is populated into a G_TYPE_STRING. Why? Inappropriate data representation is the source of all your problems. > This displays > correctly b

Sorting Integer value treeview column

2007-05-05 Thread Jason Brisbane
Hello, I have a treeview that is populated with an Integer value (from a mysql database) that is populated into a G_TYPE_STRING. This displays correctly but the sort function using: gtk_tree_view_column_set_sort_column_id (col, x); gtk_tree_view_column_set_sort_indicator (col