On Thu, Nov 7, 2013 at 4:10 AM, Mahesh Chaudhari <mahesh.chaudh...@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 _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list