GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Oct 23, 2014 1:42 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: sort-indicator, GtkComboBox::appears-as-list = 0 Windows
PostPosted: Mon Jan 16, 2012 8:17 pm 
Offline
Familiar Face

Joined: Tue Dec 20, 2011 7:03 pm
Posts: 6
I'm running a GTK application under windows (compiled with MingW)
Source is here: http://opensourcefinancialmodels.com/op ... rix.tar.gz

In the Windows gtkrc file when I set:

GtkComboBox::appears-as-list = 0

I get sort-indictors (the arrows) on my GtkComboBoxes (I don't have this problem under Linux just Windows).
I'm aware that GtkTreeViewColumn has gtk_tree_view_column_set_sort_indicator() to turn off sort indicator
but I'm not using columns in the Comboboxes.

How can I rid my Windows application of the sort-indicators?


Top
 Profile  
 
 Post subject: Re: sort-indicator, GtkComboBox::appears-as-list = 0 Windows
PostPosted: Thu Jan 19, 2012 3:44 pm 
Offline
Familiar Face

Joined: Tue Dec 20, 2011 7:03 pm
Posts: 6
The sort-indicators are GtkArrows they are overlapping my text in the Combobox.
The GtkArrows are aligned UP.
How can I add space between the GtkArrow and the GtkCombobox text or make the
arrows aligned to the right of the text?


Top
 Profile  
 
 Post subject: Re: sort-indicator, GtkComboBox::appears-as-list = 0 Windows
PostPosted: Fri Jan 20, 2012 6:36 pm 
Offline
Familiar Face

Joined: Tue Dec 20, 2011 7:03 pm
Posts: 6
To fix this I had to remove the
class "Gtk*" style "msw-default"

in the gtkrc and replace with something like the folllowing
I enabled all the classes in the project on a individual basis and commented out the
specific Gtk classes which were having theme issues...

#class "GtkMenu" style "msw-default"
#class "GtkMenuItem" style "msw-default"
#class "GtkArrow" style "msw-default"

class "GtkButton" style "msw-default"
class "GtkMenuBar" style "msw-default"
class "GtkScale" style "msw-default"
class "GtkCombobox" style "msw-default"
class "GtkRange" style "msw-default"
class "GtkFrame" style "msw-default"
class "GtkSeparator" style "msw-default"
...
and a lot more classes


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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