- Dec 17, 2010
-
-
Jérôme Guelfucci authored
-
- Jan 02, 2010
-
-
Jérôme Guelfucci authored
-
- Dec 26, 2009
-
-
Jérôme Guelfucci authored
-
- Dec 05, 2009
-
-
Jérôme Guelfucci authored
-
Jérôme Guelfucci authored
This allows us to avoid a lot of artifacts which occured in some weird and random cases whithout using ugly hacks. Moreover, it makes sense as the active window is not really defined 0 seconds after the dialog is closed (the WM needs some time to focus a new window).
-
- Nov 12, 2009
-
-
Jérôme Guelfucci authored
This should fix saving of preferences when the rc file does not exist yet. Note: always test things with a clean configuration...
-
- Oct 30, 2009
-
-
Jérôme Guelfucci authored
Instead we launch that action directly, supposing that if the user specified an action, he expects it to be used and not to be asked again what he wants to do.
-
Jérôme Guelfucci authored
-
- Oct 19, 2009
-
-
Jérôme Guelfucci authored
Fallback to the XDG image dir if it's not valid.
-
- Oct 11, 2009
-
-
Jérôme Guelfucci authored
I was doing something very ugly with the last_user string, pass it as a pointer to modify it. I don't even get how it could work before.
-
Jérôme Guelfucci authored
Only free the last user when it was set.
-
- Aug 13, 2009
-
-
Jérôme Guelfucci authored
-
Jérôme Guelfucci authored
Mark the default screenshot title as translatable. Factorize the code to open the help page.
-
Jérôme Guelfucci authored
If it does not exist, use the home directory as a fallback.
-
Jérôme Guelfucci authored
Try to set some sane defaults: always append the date and the time to the file name, the default title being "Screenshot". The title and horodating options are still setable in the configuration file. Fix the date format and always save the preferences in the main app.
-
Jérôme Guelfucci authored
Add two new options: the title of the capture is now customizable and is used to generate the name of the saved captures. It is now also possible to append the date and the time of capturing to the name of the saved file (TODO: check if "horodating" exists in English). Fix a leak in the panel plugin.
-
Jérôme Guelfucci authored
-
Jérôme Guelfucci authored
Don't exit the gtk main loop when running the panel plugin, or the panel plugin will be killed. Don't accept two region options or two action options. Warn the user that mouse, delay and action option are ignored when passed without a region option. At the moment, those error and warning messages are only displayed in logs or in a terminal. I don't think it's worth showing an error dialog for this.
-
Jérôme Guelfucci authored
This new interface is based on a suggestion by Yves-Alexis Pérez. The former main dialog is split into two dialogs: one for selecting the region to be captured and the delay, while the second one displays a preview of the screenshot and lists the available actions. The main application shows the first dialog, then the second one. If one of the region cli options is given, the screenshot is taken accordingly and the second dialog is displayed. The panel plugin uses the first dialog as a configuration dialog. When you click the plugin, the screenshot is taken and the second dialog is shown.
-
Jérôme Guelfucci authored
-
Jérôme Guelfucci authored
This option creates a lot of technical issues which are currently painful to fix. Moreover, I want to keep things simple in the future.
-
Jérôme Guelfucci authored
Now, the main dialog of the application is created once in main.c and hidden/shown when necessary. The idle func is now only responsible for taking the screenshot and hidding/showing the dialog when needed. Add a dialog member to the ScreenshotData struct, set it correctly in the panel plugin and in the application. Fix some indentation in the panel plugin code.
-
Jérôme Guelfucci authored
The non-recursive Makefile.am is used to build the convenience library, the main application and the panel plugin. This reduces the build time and it is no longer necessary to clean the whole project before build to test changes in the convenience library. Recursive makefiles are still used for the translations, the documentation and the icons.
-
Jérôme Guelfucci authored
This reverts commit f6a458b1.
-
Jérôme Guelfucci authored
The non-recursive Makefile.am is used to build the convenience library, the main application and the panel plugin. This reduces the build time and it is no longer necessary to clean the whole project before build to test changes in the convenience library. Recursive makefiles are still used for the translations, the documentation and the icons. Conflicts: ChangeLog
-
Jérôme Guelfucci authored
Remove the AC_AIX, AC_ISC_POSIX and AC_MINIX macros which seem useless and trigger a lot of warnings. Add the AC_USE_SYSTEM_EXTENSIONS macro to configure.ac.in. Do not use GNU make specific rules in {panel-plugin,src}/Makefile.am and remove some trailing spaces in lib/Makefile.am.
-
Jérôme Guelfucci authored
-
- Jul 07, 2009
-
-
Jerome Guelfucci authored
Add libsoup as a dependency, remove the XMLRPC-C stuff. Factorize the xmlrpc calls in lib/screenshooter-zimagez.c and add some additional error checking. (Old svn revision: 7690)
-
- May 29, 2009
-
-
Jerome Guelfucci authored
Use sd->cli and sd->close correctly so that it does not exit the main loop when running the panel plugin which makes it crash. Simplify the code a bit and set the members of the structure correctly when initializing the application and the plugin. (Old svn revision: 7437)
-
- May 24, 2009
-
-
Jerome Guelfucci authored
(Old svn revision: 7416)
-
- May 23, 2009
-
-
Jerome Guelfucci authored
installed. Makes libcurl and xmlrpc-c optional. (Old svn revision: 7397)
-
Jerome Guelfucci authored
- save the last user when we are in CLI. - free the last user when exiting. (Old svn revision: 7394)
-
- May 18, 2009
-
-
Jerome Guelfucci authored
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)
-
- May 17, 2009
-
-
Jerome Guelfucci authored
(screenshooter_read_rc_file) and (screenshooter_write_rc_file). * src/main.c: - use a constant for the rc file. - don't save the preferences in the callback but in (main). (Old svn revision: 7356)
-
- May 16, 2009
-
-
Jerome Guelfucci authored
an error using a GtkMessageDialog. * lib/*, panel-plugin/screenshooter-plugin.c, src/main.c: - use (screenshooter_error) instead of (xfce_err). - remove some trailing white spaces. * lib/screenshooter-job.c (screenshooter_job_ask_info): add a missing return, when the job has been cancelled. * TODO: updated. (Old svn revision: 7352)
-
- May 15, 2009
-
-
Jerome Guelfucci authored
- add the glib and stdlib headers. - use RETURN_SUCCESS and RETURN_FAILURE instead of 0 and 1. * lib/exo-simple-job.{c,h}, lib/exo-job.{c,h}: take the job framework from Exo written by Jannis Pohlmann. Thank you Jannis! * lib/screenshooter-job.{c,h}, lib/screenshooter-simple-job.{c,h}: ScreenshooterJob is based on ExoJob, it provides to additional signals, ask and image-uploaded. * lib/screenshooter-marshal.list: add some marshallers for the new signals. * lib/screenshooter-zimagez.{c,h}: port the existing code to use a ScreenshooterJob. Thanks to Jannis for his great help! This fixes a bunch of problems that occured with the previous implementation. The dialogs still need to be polished. * lib/screenshooter-actions.c: use the new function. * lib/Makefile.am: - add some magic to generate the marshallers. - sort the source files by alphabetical order. * configure.ac.in: bump the GThreads required version to 2.16. (Old svn revision: 7340)
-
- May 01, 2009
-
-
Jerome Guelfucci authored
This still needs a lot of polishment, but let's make things public. * src/Makefile.am, panel-plugin/Makefile.am: change the linking order. * lib/screenshooter-zimagez.c: - (warn_if_fault_occurred) to warn if an error occured during the XML transaction. - (screenshooter_upload_to_zimagez) to upload the screenshot. Still needs a lot of polish, but at least it works. * TODO: updated. 2009-04-19 jeromeg * src/main.c: - sort the CLI options by alphabetical order. - add an upload CLI option. - add some G_LIKELY and G_UNLIKELY macros. * lib/screenshooter-actions.c: - add some G_LIKELY and G_UNLIKELY macros. - call the upload function when the user requested it. * lib/screenshooter-utils.{c,h}: add a (rot13) function to encode the password before sending it. * lib/screenshooter-zimagez.{c,h}: two new files to support the upload of screenshots to ZimageZ.com, a free Web hosting solution. * lib/screenshooter-global.h: add the upload option. * lib/Makefile.am: add the two new files to the source. * configure.ac.in: check for xmlrpc-c, this is a bit uggly, but xmlrpc-c does not provide a .pc file... (Old svn revision: 7299)
-
- Apr 13, 2009
-
-
Jerome Guelfucci authored
- improve the indentation. - use g_spawn_command_line_async to launch the help. * lib/screenshooter-capture.c: fix a typo.:wq (Old svn revision: 7176)
-
- Mar 26, 2009
-
-
Jerome Guelfucci authored
* lib/screenshooter-utils.{c,h}: add a close item to the ScreenshotData structure. Allows the user to choose between closing the application and taking another screenshot. * src/main.c (cb_dialog_response): implement the close stuff. * lib/screenshooter-dialogs.c: Rewrite most of the interface. - use tables to align the widgets. - use a two column layout. - add an option to close/ don't close the application after taking a screenshot. (Old svn revision: 7006)
-
- Mar 14, 2009
-
-
Jerome Guelfucci authored
Gthread-2.0 >= 2.6.0 is now required. * configure.ac.in, src/main.c, src/Makefile.am, panel-plugin/screenshooter-plugin.c, panel-plugin/Makefile.am: add a dependence on gthread and initialize the threads at startup. * TODO: updated. * lib/screenshooter-actions.c: use the URI of the temporary directory and not its path, fixes the open with mode. * lib/screenshooter-dialogs.c: - (cb_progress_upload) add the remaining number of bytes to the progress bar. - (cb_finished_upload) add some debugging information. - (save_screenshot_to_local_path) return the save location. - (save_screenshot_to_remote_location): + tweak the layout of the progress dialog. + run the dialog AFTER starting the copy so that it does not block everything. + delete the temp file after the transfer. - (save_screenshot_to) return the save location when saving to a local destination. - (screenshooter_save_screenshot): + destroy the dialog as early as possible so that it does not block the main loop. + fix the open with mode here too. * autogen.sh: use git svn instead of git svn. (Old svn revision: 6901)
-