Re: deactivate "enter" signal on GtkButton
- From: Andrew Potter <agpotter gmail com>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: deactivate "enter" signal on GtkButton
- Date: Thu, 7 Nov 2013 10:46:13 -0800
On Thu, Nov 7, 2013 at 4:10 AM, Mahesh Chaudhari
<mahesh chaudhari ymail com> wrote:
Also (unsuccessfully) tried :
void enter_button1(GtkWidget *widget, gpointer data)
{
GtkStyle *style;
style = gtk_widget_get_style(button1);
style->bg[GTK_STATE_PRELIGHT] = style->bg[GTK_STATE_NORMAL];
gtk_widget_set_style(button1, style);
}
This may not have worked because the theme style may be being applied
after you call this function.
I would make a custom CSS theme and load it with priority
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION.
See https://developer.gnome.org/gtk3/stable/GtkCssProvider.html and
https://developer.gnome.org/gtk3/stable/GtkStyleContext.html#gtk-style-context-add-provider-for-screen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]