Re: GtkInfoBar - How do you set "button-spacing" style property.



On 08/27/2017 04:53 AM, David C. Rankin wrote:

  The problem is the 6px spacing is way to big and the info bar takes up too
much space. I want to set the "button-spacing" style property to 2 (or 1) to
cut down the vertical height.

  How do I set the "button-spacing" style property?

(it's these little, seemingly simple things, that are the most frustrating)



Well,

  I can't find an easy way to do it. I stumbled around and created an rcfile
entry that will do it. Here is what I cam up with:

style "infobar-button-spacing"
{
   GtkInfoBar::button-spacing = 2
}
widget_class "*.GtkInfoBar" style "infobar-button-spacing"

  Is there a better way to do it? Is there a better way to limit application
and search time to only apply to infobars?

How do you package this snippet of any rcfile and have it read by your
application -- in addition to the default theme in use? (Gtk+2)?

-- 
David C. Rankin, J.D.,P.E.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]