Re: GtkBox Styling problem.
- From: Yaa101 <yaa101 xs4all nl>
- To: Yaa101 <yaa101 xs4all nl>
- Cc: "gnome-shell-list gnome org" <gnome-shell-list gnome org>
- Subject: Re: GtkBox Styling problem.
- Date: Fri, 3 Aug 2012 16:35:47 +0200
To continue this subject, it seems that the stylecontext is set exactly
how I instructed to, reading it confirms this.
Somehow this context is not used as in the widget things do not change
according this context setting.
Are there conditions where a widget denies or care less about a style
context?
To be continued...
--
(o_
//\ Regards, Groeten,
V_/_ Bas Burger.
On Wed, 1 Aug 2012 02:08:06 +0200
Yaa101 <yaa101 xs4all nl> wrote:
>
> Hi all,
>
> Maybe somebody can help me with this:
>
> I have a display problem with some widgets, I have tried several
> themes to see if the theme was broken this way, but the problem
> persists.
>
> I have a Gtk.Notebook and on one of the (white) pages I have
>
> 1. A horizontal box
> 2. 3 vertical boxes in it to serve as 3 panels
> 3. In panel one I have a horizontal box that contains a vertical box
> with buttons and a treeview that serves as listbox (combined to make 1
> widget)
> 4. In the middle box I have some command buttons.
> 5. In the right box I have a treeview that serves as listbox and
> underneith a filechooser button(combined to make 1
> widget)
>
>
> All the functions of these widgets work perfectly together.
> However, the frames of the treeviews fall away into the background of
> the notebook page.
> Also I am not able to style any of the boxes, it seems as if they lie
> under the page instead of on the page.
>
> I tried the following example, can somebody tell me if I do something
> wrong? It tries to set the background color of the horizontal box that
> contains all the boxes and widgets and should change the white from
> the underlying page to the color of choice, in this case black. I
> tried different provider priorities too. I tried background and
> background-color.
>
>
> let styleContext = hbox.get_style_context();
> styleContext.add_class("blah");
>
> let style = '.blah { background-color: #000000; }';
>
> let cssProvider = new Gtk.CssProvider();
> cssProvider.load_from_data(style);
>
> styleContext.add_provider(cssProvider,
> Gtk.STYLE_PROVIDER_PRIORITY_USER);
>
>
>
> Let me be clear, I do not want to change styling, but leaving the user
> with broken widget styling is no option, it is ugly and keeps the
> widgets from looking intuitive.
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]