Gtk3 CSS classes for Custom Widgets - Help!

2018-02-17 Thread Randall Sawyer
I am designing a desktop tool in C Gtk+3 (v. 3.20.8). I have devised a custom widget which is intended to appear and react to user input as if it were a button (without the overhead of inheriting GtkButton). Thus, in my ..._widget_init() function, I use gtk_widget_get_style_context() and gtk_s

gtk_combo_box_text how to disable scrolling into empty space

2018-02-17 Thread Wojciech Puchar
How to disable (if it's possible) scrolling into empty space like on attached screenshot? the popup list is created by gtk_combo_box_text_new and gtk_combo_box_text_append_text. No extra options. Wojtek

Re: Gtk3 CSS classes for Custom Widgets - Help!

2018-02-17 Thread Colomban Wendling
Hi, Le 16/02/2018 à 12:12, Randall Sawyer a écrit : > I have devised a custom widget which is intended to appear and react to > user input as if it were a button (without the overhead of inheriting > GtkButton). This sounds a fairly odd way to proceed, as if it has all the properties of a GtkButt

simple question

2018-02-17 Thread Wojciech Puchar
i want in my program to change background color of the gtk_button to red sometimes as a signal to the user. it works fine with default theme but not with some other themes like E17gtk. how to fix this and ENFORCE color of button? Same with text_entry - only border is changed not the whole bac

Re: simple question

2018-02-17 Thread Liam R E Quin
On Sat, 2018-02-17 at 21:32 +0100, Wojciech Puchar wrote: > i want in my program to change background color of the gtk_button to > red > sometimes as a signal to the user. Although i don't have an answer (sorry) i'll note - i've worked with people who were red/black colourblind. I'd really be irr