Re: Custom GtkHeaderBar
- From: Takao Fujiwara <tfujiwar redhat com>
- To: cecashon aol com, gtk-app-devel-list gnome org
- Subject: Re: Custom GtkHeaderBar
- Date: Sun, 16 Apr 2017 00:17:29 +0900
On 04/15/17 04:36, cecashon aol com-san wrote:
I suspect
set_titlebar(header);
is causing the problem. If you remove that, then you will have a box that you place in the main window. If it
is a header bar box it will be below the
titlebar. The box itself is just doing the layout so it uses the window behind it. You can draw on the window
with a style context like
GtkStyleContext *context=gtk_widget_get_style_context(GTK_WIDGET(widget));
gtk_render_background(context, cr, 0, 0, width, height+20);
Probably I think it cannot get the theme color of GtkHeaderBar.
to get a specific widget color instead of setting the color with cairo.
A little limited here since I don't have a C# setup and am using GTK3.18 which doesn't have all the 3.22
functions. What OS are you using and how did
you setup C# for programming with?
Eric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]