Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » DBus integration -- need help (Adding DBus to an existing U++ app on Linux -- need help on main event loop)
Re: DBus integration -- need help [message #48546 is a reply to message #48544] Fri, 21 July 2017 00:30 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

You could try use following methods of Ctrl to obtain gtk & gdk handlers:
	GdkWindow *gdk() const { return top ? top->window->window : NULL; }
	GtkWindow *gtk() const { return top ? (GtkWindow *)top->window : NULL; }


Probably with these two variables you could try to integrate D-BUS. Sometimes ago I plan that innovation for U++, but it will require time to develop that we don't have it too much now. D-Bus could be usefull for develop such features as notification and global menu and probably more.

You could also see our GTK backend code easily. Just go to CtrlLib and analyze the files under "Gtk" separator. Probably there you will find the handling of event loop.

If you guys create something that could be used as library. It would be nice to keep it as open source.

Sincerely and good luck with implementation,
Klugier


U++ - one framework to rule them all.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GLCtrl problem
Next Topic: [Bug (minor)]: CenterScreen not working
Goto Forum:
  


Current Time: Sat Apr 27 04:22:10 CEST 2024

Total time taken to generate the page: 3.92187 seconds