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 Aug 21, 2014 4:02 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Is the font config'd in gtkrc file getting overridden?
PostPosted: Thu Oct 20, 2011 11:58 pm 
Offline

Joined: Thu Oct 20, 2011 11:22 pm
Posts: 2
I am working on a project using GTK2 2.14 and Glade with libglade as the file format. I'm struggling to set the overall font of the application. I have been successful changing the font of the individual labels using Pango markup directly through Glade with the "Use Markup:" feature, but I am looking for something to change all of the widgets, including the buttons. Modifying the gtkrc file allows changes to both the style and the size of the "font_name" declaration, but not the font family. The fact that changes to the resource file work other than the font family leads me to believe that it's getting overridden somewhere. If so, where should I be looking?

It's also very possible that something's wrong with my gtkrc file. Below's a snippet.

Code:
style "defaultfont"
{
  font_name = "Sans Bold 15"
}

gtk-font-name = "Sans 15"
class "GtkWidget" style "defaultfont"


Any insight is appreciated.


Top
 Profile  
 
 Post subject: Re: Is the font config'd in gtkrc file getting overridden?
PostPosted: Wed Oct 26, 2011 5:23 pm 
Offline

Joined: Thu Oct 20, 2011 11:22 pm
Posts: 2
I found the problem. The GtkWidget class was being defined by a different style within the same gtkrc file. Consolidating the style fixed the problem.


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

All times are UTC


Who is online

Users browsing this forum: No registered users 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