Detect dark or light theme from an application

2018-11-06 Thread Yuri Khan via gtk-app-devel-list
Hello everybody, I know in the GTK+3 theming engine a theme can define a light variant and a dark variant. Is it possible, in an application, to know which variant is currently used, and/or specify which widget in the application uses which variant? Here’s the wider context: Mozilla Firefox uses

Re: How can I change the font of a text field using non-deprecated way?

2018-10-02 Thread Yuri Khan via gtk-app-devel-list
On Sat, Sep 22, 2018 at 3:11 PM Радомир Хаџић via gtk-app-devel-list wrote: > I'm trying to make a small application in C using GTK+3 (the latest > stable). The application is going to have a text field implemented using > GtkTextView where a user can write text. I also font a user to be able to

Re: GTK3 + gnuplot

2018-10-02 Thread Yuri Khan via gtk-app-devel-list
On Wed, Sep 19, 2018 at 12:19 AM Allin Cottrell wrote: > > The question now is: "How to embed a gnuplot graphic in gtk3? > > Could you say, please, where to find a simple example, just to undestand > > how it is possible to do that? > > Get gnuplot to produce a PNG file, load the PNG into a GdkPi

Re: Cancel a Drag & Drop for some specific items in a Gtk.TreeView

2018-10-02 Thread Yuri Khan via gtk-app-devel-list
On Tue, Sep 11, 2018 at 4:27 AM c.buhtz--- via gtk-app-devel-list wrote: > I have a Gtk.TreeView here. Most but not all of the items should be > able to be dragged & dropped. For example the first item should not be > able to be dragged & dropped but it should be selectable. > > How can I realize

Re: Copywrite protection and source-code distribution

2018-08-02 Thread Yuri Khan via gtk-app-devel-list
On Thu, Aug 2, 2018 at 8:31 AM Roger Matthews via gtk-app-devel-list wrote: > > I have developed an application using GTK+3.10. What copy-write protection > can you (GTK+) provide for me. I have been told that copywrite is free and > automatic and that to protect the software from piracy I need

Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-21 Thread Yuri Khan
On Sat, Apr 21, 2018 at 3:17 PM, arkkimede wrote: > Thanks to Nicola and Yuri for the suggestions! > Let me summarize: > > 1. Use pdf instead of png > 2. Define the dimension of pdf in points; > > The last open point is: how to get a "preview" on the screen (this time in > pixels) to decide whethe

Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-21 Thread Yuri Khan
On Sat, Apr 21, 2018 at 2:19 PM, arkkimede wrote: > Ok! I can use the pdf format but the dimensions of the draw area? The PDF format does not operate in pixels. Instead, it uses points. A point is 1/72 of an inch. An inch is 25.4 millimeters. A standard A4 sheet is 210 mm wide, 297 mm high. Most

Re: widget show() / hide() crashes application

2018-04-03 Thread Yuri Khan
On Tue, Apr 3, 2018 at 5:56 PM, Tilo Villwock wrote: > Just as a hint: in case you're trying to embed screenshots here, it's > not allowed. You need to upload it somewhere and link it in your mail. More to the point, error messages quoted as text are much more useful than screenshots. They surviv

Re: background color for GtkTreeView

2018-03-10 Thread Yuri Khan
On Sat, Mar 10, 2018 at 10:40 PM, wrote: > that does seem to do the trick. Seems rather unfortunate though to set > it by manually. I was hoping there's at least a predefined theme color > variable anywhere to put in here. You might try using the :not CSS selector. The documentation mentions it

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Yuri Khan
On Thu, Jan 25, 2018 at 4:40 PM, Kian Karas wrote: >> Part Number 71-00 >> Version47.11D >> Build Number kk-5910 >> NATID 8988 1697 >> 0013 > > If a row is to span multiple lines, it might improve read

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Yuri Khan
On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas wrote: > It's an industrial device with a 4.5" screen. The only input method is a > keypad. The keypad has up/down/left/right/enter/back buttons (and some other > domain specific keys). The before mentioned keys are used to navigate a menu > system. > >

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Yuri Khan
On Mon, Jan 22, 2018 at 6:03 PM, Kian Karas wrote: > I have a GtkTreeview with size constraints, which causes the text of one > particular column in one particular row not to fit into its cell. > > Is there a way for the user to scroll the content of a specific cell (i.e. > a specific column in t

Re: GtkSource.PrintCompositor: How to possible printing plain text documents without lost blank lines and indentations?

2017-10-15 Thread Yuri Khan
On Sun, Oct 15, 2017 at 1:42 AM, Eric Cashon via gtk-app-devel-list wrote: > The first thing that I would try out is to change the font that is being > drawn to see if that works. I am getting an impression that fonts are not going to make any difference. The OP seems not interested in how the

Re: Header bar: Keyboard accessibility?

2017-06-23 Thread Yuri Khan
On Sat, Jun 24, 2017 at 1:21 AM, Michael Torrie wrote: >> I’m on 3.18, and here’s my test application/mockup: >> >> http://yurikhan.github.io/images/20170623-gtk-header-bar.png > > Oh I see. Yes that's different. The application menu usually refers (at > least in my mind) to the now ubiquitous h

Re: Header bar: Keyboard accessibility?

2017-06-23 Thread Yuri Khan
On Fri, Jun 23, 2017 at 11:15 AM, Michael Torrie wrote: > All the Gnome 3 apps that use a header bar that I have at my disposal > let me open the application menu with F10. Even when I run the app > under the most primitive window manager out there, TWM. Are they doing > something different tha

Header bar: Keyboard accessibility?

2017-06-22 Thread Yuri Khan
Hello everybody. I have heard of desktop environments that display the application menu in a dedicated place (GNOME Shell, OS X). Presumably, in that case the desktop environment provides a key that the user can press to open the application menu. I am not on such a system. That means every GTK a