Revision 1907
- Rewritten the ipc_linux.c file to use GDbus instead of dbus-glib
- When the connection with DBus is lost, automatically try to reconnect
- Don't depend on a code generator anymore for the processing of the DBus XML file
- Now that nothing in NNTPGrab uses dbus-glib anymore, drop it's dependency. Closes #81
- Dropped the --disable-dbus configure flag as GDbus it part of a regular GLib installation
so it doesn't make sense anymore to have it as an optional feature
- Moved all IPC code to the nntpgrab_utils library so it can be used by all frontends
- Five new API functions got added to the nntpgrab_utils library because of this move:
nntpgrab_utils_test_is_frontend_already_running, nntpgrab_utils_register_frontend, nntpgrab_utils_unregister_frontend,
nntpgrab_utils_send_open_nzb_file_request and nntpgrab_utils_send_bring_to_front_request
- Improved detection of already running NNTPGrab instances on Linux in both the Gtk and Qt frontends
This solves the issues mentioned at feature #89. Closes #89
- Added various testcases for the IPC code
- Dropped the old test_dbus testcase as it was using dbus-glib
- Added support for the 'BringToFront' IPC method which can be used to have a running NNTPGrab process present itself
- Parse the command line arguments earlier in startup of the program when using the GTK3 frontend (GtkApplication)
Related issues
- Feature #81: Improved support for GNOME3
- Feature #89: Improve detection of already running instances on Linux
Files
- added
- modified
- copied
- renamed
- deleted
View differences
- trunk
-
- NNTPGrab.files (diff)
- NNTPGrab.includes (diff)
- base
-
- Makefile.am (diff)
- ipc_dbus.c /trunk/client/gui/ipc_linux.c
- ipc_osx.c /trunk/client/gui/ipc_osx.c
- ipc_win32.c /trunk/client/gui/ipc_win32.c
- nntpgrab_utils.def (diff)
- nntpgrab_utils.h (diff)
- client
-
- gui
-
- Makefile.am (diff)
- gui.h (diff)
- main.c (diff)
- nntpgrab_gui_dbus.xml
- nzb.c (diff)
- gui_qt
-
- DialogConnect.cpp (diff)
- QNNTPGrabGlue.cpp (diff)
- QNNTPGrabGlue.h (diff)
- QNNTPGrabGlue_p.h (diff)
- main.cpp (diff)
- mainwindow.cpp (diff)
- mainwindow.h (diff)
- configure.in (diff)
- tests
-
- Makefile.am (diff)
- test_dbus.c
NNTPGrab

