[Xfce-bugs] [Bug 15730] high CPU usage when `Show flat buttons` is NOT selected in `Window Buttons` xfce4-panel plugin
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Sat Jul 20 12:30:05 CEST 2019
https://bugzilla.xfce.org/show_bug.cgi?id=15730
--- Comment #2 from howaboutsynergy <howaboutsynergy at pm.me> ---
Interesting, this might be a bug in gtk after all? given my superficial
understanding of things:
(I wonder how I could test this ... maybe I could modify a gtk3 example
somehow?)
so GTK_RELIEF_NORMAL is non-flat buttons
```c
case PROP_FLAT_BUTTONS:
xfce_tasklist_set_button_relief (tasklist,
g_value_get_boolean (value) ?
GTK_RELIEF_NONE :
GTK_RELIEF_NORMAL);
break;
...
static void
xfce_tasklist_set_button_relief (XfceTasklist *tasklist,
GtkReliefStyle button_relief)
{
GList *li;
XfceTasklistChild *child;
panel_return_if_fail (XFCE_IS_TASKLIST (tasklist));
if (tasklist->button_relief != button_relief)
{
tasklist->button_relief = button_relief;
/* change the relief of all buttons in the list */
for (li = tasklist->windows; li != NULL; li = li->next)
{
child = li->data;
gtk_button_set_relief (GTK_BUTTON (child->button),
button_relief);
}
/* arrow button for overflow menu */
gtk_button_set_relief (GTK_BUTTON (tasklist->arrow_button),
button_relief);
}
}
```
https://developer.gnome.org/gtk3/stable/GtkButton.html#gtk-button-set-relief
The default style is, as one can guess, GTK_RELIEF_NORMAL.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list