GDBus: Implementing multiple interfaces with a single object

2017-03-22 Thread Colin Walters
Hey, Is there some example code out there that implements multiple GDBus interfaces using a single GObject? I have an existing subclass of the $prefix_TYPE_$iface_SKELETON and I'd like it to *also* implement a new interface. This is for rpm-ostree, so I'll just make it concrete; I started by do

Re: Re-drawing GtkDrawingArea surface on motion-notify-event

2017-03-22 Thread Stefan Salewski
On Sun, 2017-03-19 at 22:12 +, Marcin Kolny wrote: > I'd like to write very simple application for drawing lines. You can restrict all drawing operations to a rectangle enclosing your line. For each move with button pressed, fill that rectangle with background color and then draw the line with

Re: Is GtkAssistant a toplevel widget?

2017-03-22 Thread Emmanuele Bassi
As you can see here: https://developer.gnome.org/gtk3/stable/GtkAssistant.html#GtkAssistant.object-hierarchy GtkAssistant is-a GtkWindow, which means it's a top level widget. The documentation of `gtk_widget_is_toplevel()` does not list all the possible GtkWindow sub-types, because GTK+ may i

Re: Best practise inheritance

2017-03-22 Thread Emmanuele Bassi
Now that I'm not on my phone, I can probably do a better job at replying to this email. On 21 March 2017 at 23:21, Emmanuele Bassi wrote: > > On Tue, 21 Mar 2017 at 21:23, S. Jacobi wrote: >> >> On Tue, 21 Mar 2017 20:53:04 + >> Emmanuele Bassi wrote: >> >> > >> > Also, do not store a priva

Is GtkAssistant a toplevel widget?

2017-03-22 Thread songqing shan
Hi, I want anybody can help me as follows. On the GTK3.0 manual, "gtk_widget_is_toplevel()" part says that "Currently only GtkWindow and GtkInvisible (and out-of-process GtkPlu

Re-drawing GtkDrawingArea surface on motion-notify-event

2017-03-22 Thread Marcin Kolny
Hi everyone, I'd like to write very simple application for drawing lines. 1) User press button - app saves x and y coordinates 2) User moves the mouse - app dynamically draws potential line on each mouse move event 3) User releases button - app "saves" the line on the canvas. I've tried to modi

Re: How use gnome-calculator in my gtk+ app

2017-03-22 Thread Roth Robert
Hi Ruben, That depends on what do you mean by adding a calculator: * do you only need a text-field to evaluate calculations from? (easier to implement, spawn a process for the command-line version of calculator to calculate the result, just like the calculator gnome shell search provider does) * d

How use gnome-calculator in my gtk+ app

2017-03-22 Thread Rúben Rodrigues
Hi guys, I need to add to my app a calculator. It's possible to add gnome-calculator as child of a container in my app? Thanks Ruben --- Este e-mail foi verificado em termos de vírus pelo software antivírus Avast. https://www.avast.com/antivirus __