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
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.
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 */
> >
> > 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
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
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
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
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)
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
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
10 matches
Mail list logo