Re: [gnome-flashback] Proponsal for exporting GTK widgets over DBus



Hi:

There is no need to do a branch, just an in-process applet that can contain these applets (of course, just for the test). I'll try to do it.

On 08/08/15 17:47, Alberts Muktupāvels wrote:
Hi,

I am not saying that I dislike. I just don't understand how all that will work and what limitations/regressions will cause if we change out-process applets from GtkPlug/GtkSocket to DBus. Right now I simply have no time... :(

If you have time then create new branch (for gnome-panel) that ports out-process applets from GtkSocket/GtkPlug to your dbus lib and then we can test with existing applets.



On Sat, Aug 8, 2015 at 5:46 PM, rastersoft <raster rastersoft com> wrote:
Hi:

No, currently it's not possible, unless I add an specific DBUS API for Gtk.DrawingArea. I was thinking to do it more like libappindicator, with just some icons. I presume that you dislike that approach :(


On 08/08/15 13:48, Alberts Muktupāvels wrote:
Hi,

can you create fish applet with dbus (drawing fish animation)? Can you create system monitor applet, again custom drawing on widget - you can not do that over dbus, can you?

On Sat, Aug 8, 2015 at 2:21 PM, rastersoft <raster rastersoft com> wrote:
Hi:

There is already a sample in my github account which does that: it creates several widgets in the server (the "panel") window, which notifies the client (the "applet" code itself, in another process) changes on them, and viceversa. All over DBus.

It is at https://github.com/rastersoft/dbuilder, also with some documentation in the README.md file. Just download it, compile and install it, and launch first the "server" with

    dbuilder_server &

and then the client with

    dbuilder_client &

The example has two windows (one in the server and one in the client), with text entries and labels; whatever is typed in one text entry appears in the label of the other window, all using "standard" signal callbacks and properties from GKT3, exported with DBus.


On 08/08/15 13:02, Alberts Muktupāvels wrote:
Hi,

I don't think that it will work...

Can you show example with creating widget (for example simple label with some text) in server and add that widget in client window? This would be very simple example.

Then create more advanced widget, for example, overriding draw function and adding/drawing stripes to background in server widget and add it to client window.


On Fri, Aug 7, 2015 at 12:36 PM, rastersoft <raster rastersoft com> wrote:
Hi again:

Maybe the best way for out-process applets would be to export the
widgets over DBus, and letting the panel to paint them. This also would
allow to migrate to Wayland without the problem of widget embedding
(which I'm not sure if it is available under Wayland).

Some time ago I did some experiments about that, and found that, thanks
to GObject Introspection, it is extremely easy to export GTK widgets
over DBus. In fact, I made a proof-of-concept, which I uploaded to my
GIT repository:

https://github.com/rastersoft/dbuilder

--
Nos leemos
                         RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com


_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list



--
Alberts Muktupāvels


_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list

-- 
Nos leemos
		         RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com


_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list




--
Alberts Muktupāvels


_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list

-- 
Nos leemos
		         RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com


_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list




--
Alberts Muktupāvels


_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list

-- 
Nos leemos
		         RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]