Commit Graph

94 Commits

Author SHA1 Message Date
Yclept Nemo 0c6b1fb42e Add a tools sub-menu
Giving access to additional tools from laditools:
* ladi-player
* ladi-system-log
2023-07-19 18:58:17 -04:00
Yclept Nemo 5638cc7e2b Pass additional arguments to MenuItem callbacks
Also give the "on_menu_launch_handler" callback an additional argument
"kill=True" that can disable the killing of managed processes.
2023-07-19 18:58:17 -04:00
Yclept Nemo e74e30b875 Remove a workaround for an old pygtk bug
The bug was documented as a "focus bug in pygtk" on nested Gtk.MenuItem
objects. The workaround was to switch the signal handler from "activate"
to "button-release-event". This was done in Mar 2012 and pygtk is no
longer supported upstream. I reverted the workaround and noticed no
issues during testing.

This allows all MenuItem callbacks to share a common interface and
should allow keyboard control of sub-menus.
2023-07-19 18:57:50 -04:00
Nedko Arnaudov 0a61977400 laditools/__init__.py: set version to 1.1 2023-03-01 01:07:35 +02:00
Nedko Arnaudov 9be30b9ff4 python3 fixes and more
log files were opened in binary mode
this was resulting in read_last() not working correctly
2021-02-14 23:59:34 +02:00
Nedko Arnaudov 8ea30191d6 update to py3
2to3 -w .
2021-02-14 23:54:53 +02:00
Alessio Treglia fab858bad0 Remove comment. 2012-03-21 10:21:52 +01:00
Alessio Treglia 54ec74b33f Refactoring 2012-03-20 13:34:07 +01:00
Alessio Treglia 068451c2ed Let customize menu's quit handler 2012-03-20 08:32:14 +01:00
Alessio Treglia 678cab6a91 Remove duplicate code. 2012-03-20 08:10:30 +01:00
Alessio Treglia 8942e68be5 Let application decides on how to handle signals. 2012-03-20 07:59:55 +01:00
Alessio Treglia 8e51e072df better handle signals 2012-03-19 21:49:32 +01:00
Alessio Treglia 8b5795bab9 Add SIGINT handler. 2012-03-19 21:48:11 +01:00
Alessio Treglia 569922dc54 application.py does not provide ladi-system-tray, remove comment 2012-03-19 02:43:07 +01:00
Alessio Treglia e2229c9077 New-style class 2012-03-19 02:22:45 +01:00
Alessio Treglia 856e732e66 Drop metaclasses' mess 2012-03-19 02:10:08 +01:00
Alessio Treglia 87ff4a1e0d New virtual class for LADI applications. 2012-03-19 01:34:57 +01:00
Alessio Treglia ac3bc79587 Some refactoring and cleanup 2012-03-19 01:34:23 +01:00
Alessio Treglia f482e91e6c Better line wrapping 2012-03-18 20:12:44 +01:00
Alessio Treglia b5d94d1318 Don't provide any configuration to LadiMenu, it's behavious must be statically.
- The apps which want to provide a custom menu can subclass LadiMenu
  override create_menu()
2012-03-18 20:10:46 +01:00
Alessio Treglia 2e9e57dbea Let apps select a filename. 2012-03-18 20:09:52 +01:00
Alessio Treglia 4bd913d33c Adapt find_data_files to look for the icons 2012-03-18 01:25:36 +01:00
Alessio Treglia b40088717c Replace 'not x in list' with 'x not in list' for better readibility 2012-03-17 12:49:20 +01:00
Alessio Treglia de956dddd3 Better handle processes. On first double-click gladish runs, on the next one it closes. 2012-03-17 12:00:39 +01:00
Alessio Treglia ecf75ee0b4 Move about dialog into LadiManagerGtk, refactor other classes 2012-03-16 21:08:17 +01:00
Alessio Treglia b11b28f9f3 Fix on_menu_launcher 2012-03-16 20:14:22 +01:00
Alessio Treglia ccb03f86b5 Move _launcher_which from ladi-player to LadiManagerGtk 2012-03-16 20:01:21 +01:00
Alessio Treglia bb5bbc8566 Replace ladiconf with ladi-control-center 2012-03-16 19:57:26 +01:00
Alessio Treglia 3e25b779b4 Validate studio's new name before saving it 2012-03-16 19:52:07 +01:00
Alessio Treglia da0fe4eed1 Replace check calls with boolean values. 2012-03-16 19:37:27 +01:00
Alessio Treglia cd8c266d69 Group "if" statement better 2012-03-16 19:31:11 +01:00
Alessio Treglia f3c2dd5270 Show "save" only when studio is loaded and started 2012-03-16 19:28:15 +01:00
Alessio Treglia f5bb9fa173 Revert "Add virtual class for applications."
This reverts commit 87e16457dc.
2012-03-16 16:47:51 +01:00
Alessio Treglia 79f7382e3a Revert last three commits, too much work for no benefits 2012-03-16 16:47:04 +01:00
Alessio Treglia 9417f25059 Add new ladiconf implementation 2012-03-16 15:58:24 +01:00
Alessio Treglia 8450d1a21e Export LadiApp virtual class 2012-03-16 15:58:02 +01:00
Alessio Treglia 87e16457dc Add virtual class for applications. 2012-03-16 15:57:09 +01:00
Alessio Treglia 514003e0af Make update() call as virtual 2012-03-15 14:11:03 +01:00
Alessio Treglia 3ad53e52fd Remove old ladimenu module 2012-03-15 02:11:39 +01:00
Alessio Treglia 427b9da81b Refactoring
-> laditools.LadiController            Service controller
|
 ---> laditools.LadiManager             UI-independent supervisor
|
 -----> laditools.gtk.LadiManagerGtk    GTK-based supervisor
|
 -------> laditools.gtk.LadiMenu        Logic and UI objects for
                                        GtkStatusIcon (laditray)
2012-03-15 01:39:48 +01:00
Alessio Treglia 9a69680639 Refactoring of ladimenu (as-per changes introduced in LadiManager) 2012-03-14 20:38:28 +01:00
Alessio Treglia 472f2bbb88 Refactoring of ladimenu
- Create a new non-ui dependent class LadiManager
2012-03-14 20:31:56 +01:00
Alessio Treglia d88896c9d0 Fix serious bug in LadiManager.name_dialog
It's needed to inspect the widget *before* the dialog gets destroyed.
2012-03-14 17:53:08 +01:00
Alessio Treglia 1395ca8b5c Add "Start automatic studio" option, useful when autostart is disabled. 2012-03-12 01:09:12 +01:00
Alessio Treglia eb88733a0c Show the widget which actually can change the current Studio's status. 2012-03-11 14:25:38 +01:00
Alessio Treglia f97d70c282 Import default values before reading them from the configuration. 2012-03-11 14:08:45 +01:00
Alessio Treglia 636a479170 Properly handle config format migration. 2012-03-11 11:46:53 +01:00
Alessio Treglia 00224e2ae4 Workaround to make Configure visible. 2012-03-09 13:37:58 +01:00
Alessio Treglia 17a2a18e4f The dict maybe empty, not None 2012-03-09 13:35:19 +01:00
Alessio Treglia b79d293967 Save after having updated the configuration. 2012-03-09 13:35:07 +01:00