View Single Post
Old 06-18-2011, 04:56 PM   #102
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
A minor wish:

as DR programs didn't use scrollbars, IREX people didn't modify their style in the theme they provided. But as we port some programs, these scrollbars look very big and ugly.

An easy per-app way to fix it is defining a proper style which is used in the program.
This is the way I use in my vala programs:

Code:
private const string DEFAULT_STYLE = """
style 'basic_style' {
  GtkScrollbar::slider_width = 12
  GtkScrollbar::stepper_size = 12
}
class 'GtkWidget' style 'basic_style'
""";
[...]
Gtk.init(ref args);
Gtk.rc_parse_string(DEFAULT_STYLE);
var app = new SysInfo();
[...]
It should be quite similar in C, just remember to load and parse the new style just AFTER gtk.init call and before any widget is realized.

Mackx, could you add this, please? Xournal will really look better.

Thanks,
Iņigo

Last edited by Iņigo; 06-20-2011 at 03:06 AM.
Iņigo is offline   Reply With Quote