Glade interface + Gtk3 style sheet problems

时间:2017-06-15 09:30:59

标签: css gtk glade

I am making a graphical user interface containing two progress bars. In glade interface designer the bars look like this: Glade progress bar view but what I am getting on the screen is this: What I get on screen.

I tried everything from adjusting the width settings of the object in glade as well as trying to determine the width by using a style sheet like this:

GtkProgressBar {
    -GtkProgressBar-min-horizontal-bar-height: 14;
    -GtkProgressBar-min-vertical-bar-width: 14;

    padding: 2px;
}

but without succes, is there anyone who knows how to resolve this issue?

Thanks in advance

EDIT:

So I reread the documentation this time paying closer attention to the program version.

GTK3 Version: 3.14, Glade Version 3.14.2

according to the GTKprogressbar which i am not allowed to properly link, the The “min-vertical-bar-width” style property should still work. Even though it is not recommended for higher versions. Another added piece of information that might be of use is that I am using this on a raspberry pi, raspbian setup and I believe the GTK is the latest available version for this setup.

1 个答案:

答案 0 :(得分:0)

我刚刚发现了这样的东西:

progress, trough {
  min-height: 30px;    
}