* lib/screenshooter-global.h: add a cli gboolean to the ScreenshotData
structure. Combined with the close member of the structure, this allows to close the application or not depending on how the executable is called. * src/main.c, lib/screenshooter-actions.{c,h}: move the dialog stuff to (screenshooter_take_and_output_screenshot) which is from now on a GSourceFunc. It returns TRUE if we want to take another screenshot, else it quits the main loop and returns FALSE. It is called via g_idle_add in (main), which allows us to always have a main loop. The workaround consisting in sleep (1) before taking a screenshot seems useless now. * lib/screenshooter-zimagez.c: don't start and exit a main loop here, run the dialog instead of showing it. * panel-plugin/screenshooter-plugin.c: set the cli member of the structure to false when initializing the plugin. (Old svn revision: 7361)
Showing
- ChangeLog 19 additions, 1 deletionChangeLog
- lib/screenshooter-actions.c 73 additions, 4 deletionslib/screenshooter-actions.c
- lib/screenshooter-actions.h 1 addition, 1 deletionlib/screenshooter-actions.h
- lib/screenshooter-global.h 1 addition, 0 deletionslib/screenshooter-global.h
- lib/screenshooter-zimagez.c 1 addition, 5 deletionslib/screenshooter-zimagez.c
- panel-plugin/screenshooter-plugin.c 2 additions, 0 deletionspanel-plugin/screenshooter-plugin.c
- src/main.c 13 additions, 70 deletionssrc/main.c
Loading
Please register or sign in to comment