GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Sep 17, 2014 9:35 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Change of icon size in gtkentry
PostPosted: Tue Sep 03, 2013 5:11 am 
Offline
Familiar Face

Joined: Thu Nov 01, 2012 5:48 am
Posts: 30
Hi All ,

In GTK+ 3.2.4 we can change load any icon size through API "gtk_entry_set_icon_from_pixbuf " .
But in GTK+3.8.0 the size of icon is always coming same ( 16 x 16 ) .
When I dig the gtk source code I found that they fixed the size of icon .

Is there any API or other way by which I can change the size of icon in gtkentry ?

Thanks in advance .

hkishn


Top
 Profile  
 
 Post subject: Re: Change of icon size in gtkentry
PostPosted: Tue Sep 03, 2013 6:01 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 745
Location: UK
Hello,

There is no way to re-size the icon image and the difference that you can see is to correct a bug (bug number 678087 https://bugzilla.gnome.org/show_bug.cgi?id=678087).

This change you will see from GTK+ 3.6 onwards.

If you want an image next to your GtkEntry it would be better to create it as a separate widget rather that use GtkEntry's internal icon which is intended for icons only and not large images.

_________________
E.


Top
 Profile  
 
 Post subject: Re: Change of icon size in gtkentry
PostPosted: Tue Sep 03, 2013 10:32 am 
Offline
Familiar Face

Joined: Thu Nov 01, 2012 5:48 am
Posts: 30
Thanks for the reply .

I can place image at the starting of the gtkentry and align text with some values from the starting of the gtkentry .
But in this case as I type in gtkentry , the text starts moving backwards .

is there any way to fix the text entry position in GtkEntry .


Regards
hkishn


Top
 Profile  
 
 Post subject: Re: Change of icon size in gtkentry
PostPosted: Wed Sep 04, 2013 6:18 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 745
Location: UK
I am not sure what you are trying to ask with this question.

How you got the image inside the GtkImage I am not sure. If it is some undocumented method then this could be another problem for you in the future as bugs are corrected inside GTK+.

From what you describe that is what is supposed to happen when you enter text into a GtkEntry. What is it that you want?

_________________
E.


Top
 Profile  
 
 Post subject: Re: Change of icon size in gtkentry
PostPosted: Wed Sep 04, 2013 12:05 pm 
Offline
Familiar Face

Joined: Thu Nov 01, 2012 5:48 am
Posts: 30
I mean to say if x align text in gtk entry then as soon as I start writing inside gtk entry , text start shifting towards left .
Is there any way to stop shifting text to left while typing in case of x alignment .

Regards
hkishn


Top
 Profile  
 
 Post subject: Re: Change of icon size in gtkentry
PostPosted: Thu Sep 05, 2013 5:53 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 745
Location: UK
That is what it is supposed to do!

You have so far said what you do not want it to do. But have not said what you want it to do.

_________________
E.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group