Displaying xpm images in textview

2007-05-06 Thread prabahar k
Hi I want to display xpm images in a textview along with some text. The problem is when inserting an xpm image along with few letters and a newline character ,it forms a small gap in between two rows which detaches the xpm images. I want it to be continious. I think textview buffer is allocating s

Re: GtkImage problem

2007-05-06 Thread Lance Dillon
I'm thinking you'll want to add: gtk_widget_show_all(window); With that you can remove: gtk_widget_show(image); - Original Message From: beginner.c <[EMAIL PROTECTED]> To: gtk-app-devel-list@gnome.org Sent: Sunday, May 6, 2007 6:36:32 PM Subject: Re: GtkImage problem You are right.

Re: GtkImage problem

2007-05-06 Thread beginner.c
You are right. Thanks for that. Everything executes without error...except, no image is displayed. void create_window (GtkWidget *window, GtkWidget *image) { GladeXML *gxml; gxml = glade_xml_new (GLADE_FILE, NULL, NULL); /* This is important */

Re: Simple draw question

2007-05-06 Thread Cédric Lucantis
> > > > 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, so you should do something like this instead: > > Ok, I have questions here and they are because I really want to know

Re: GtkImageMenuItem size incorrect

2007-05-06 Thread Yeti
On Sun, May 06, 2007 at 04:42:45PM +0530, Gaurav Jain wrote: > > > Thanks Yeti for the information! One more help please - could you > please tell me how to pack an image + Label to a GtkMenuItem? I'm > unsure how you managed this, because if I try to replace the existing > child label in the Gtk

Re: GtkImageMenuItem size incorrect

2007-05-06 Thread Gaurav Jain
On 5/6/07, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > On Sun, May 06, 2007 at 10:22:52AM +0530, Gaurav Jain wrote: > > > > 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

Re: GtkImage problem

2007-05-06 Thread Yeti
On Sun, May 06, 2007 at 04:06:11AM -0700, beginner.c wrote: > > I am in fact > calling gtk_init() prior to any of these functions. No, you don't, the call to gtk_image_new() to initialize image GtkWidget *image = gtk_image_new(); is performed before any code in main(). Yeti -- http://gwyddi

Re: GtkImage problem

2007-05-06 Thread beginner.c
Thanks for the response but as you can see from my original post I am in fact calling gtk_init() prior to any of these functions. David Nečas (Yeti)-2 wrote: > > On Sat, May 05, 2007 at 04:27:14PM -0700, beginner.c wrote: >> >> As suggested I've done: gtk_image_set_from_file (GTK_IMAGE(image)

Re: GtkImageMenuItem size incorrect

2007-05-06 Thread Yeti
On Sun, May 06, 2007 at 10:22:52AM +0530, Gaurav Jain wrote: > > 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 o

Re: GtkImage problem

2007-05-06 Thread Yeti
On Sat, May 05, 2007 at 04:27:14PM -0700, beginner.c wrote: > > As suggested I've done: gtk_image_set_from_file (GTK_IMAGE(image), > "/home/s/Pictures/space-05.jpg"); Please see my answer http://mail.gnome.org/archives/gtk-list/2007-May/msg00039.html unfortunately sent to the wrong mailing li