Skip to content
Snippets Groups Projects
  1. Aug 13, 2009
    • Jérôme Guelfucci's avatar
      Rework the actions dialog to add horodating. · 0e4e465c
      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.
      0e4e465c
    • Jérôme Guelfucci's avatar
      Rainy day. Major interface rethinking. · e1d44638
      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.
      e1d44638
    • Jérôme Guelfucci's avatar
      Remove the option to take several screenshots in a row. · 93e5c70e
      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.
      93e5c70e
    • Jérôme Guelfucci's avatar
      Simplify (screenshooter_take_and_output_screenshot). · 61df0c32
      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.
      61df0c32
    • Jérôme Guelfucci's avatar
      Use a non-recursive Makefile.am to build the sources. · eefbf7c8
      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.
      eefbf7c8
    • Jérôme Guelfucci's avatar
      Revert "Use a non-recursive Makefile.am to build the sources." · ccbfc4ac
      Jérôme Guelfucci authored
      This reverts commit f6a458b1.
      ccbfc4ac
    • Jérôme Guelfucci's avatar
      Use a non-recursive Makefile.am to build the sources. · 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
      f6a458b1
    • Jérôme Guelfucci's avatar
      Fix all warnings when running the autogen script. · dccab28c
      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.
      dccab28c
    • Jérôme Guelfucci's avatar
      Use my Xfce adress everywhere. · 959dcbf7
      Jérôme Guelfucci authored
      959dcbf7
  2. Jul 07, 2009
    • Jerome Guelfucci's avatar
      Use libsoup instead of XMLRPC-C. · d3c68171
      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)
      d3c68171
  3. May 29, 2009
    • Jerome Guelfucci's avatar
      Fix a crash in the panel plugin. · 73c546ef
      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)
      73c546ef
  4. May 18, 2009
    • Jerome Guelfucci's avatar
      * lib/screenshooter-global.h: add a cli gboolean to the ScreenshotData · 89d07586
      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)
      89d07586
  5. May 16, 2009
    • Jerome Guelfucci's avatar
      * src/screenshooter-utils.{c,h}: add (screenshooter_error) which shows · 79f58112
      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)
      79f58112
  6. May 01, 2009
    • Jerome Guelfucci's avatar
      2009-05-01 jeromeg · d5df895a
      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)
      d5df895a
  7. Apr 16, 2009
    • Jerome Guelfucci's avatar
      * panel-plugin/screenshooter-plugin.c: · 6d790eac
      Jerome Guelfucci authored
      	  - remove the wrong XFCE_PANEL_PLUGIN_REGISTER_INTERNAL macro call,
      	    the plugin is external.
      	  - add (set_panel_button_tooltip) to simplify the code, this function
      	    sets the tooltip according to the area to be captured.
      	  - use g_spawn_command_line_async to laucnh the help window.
      	  - improve the indentation in some places.
      	* lib/screenshooter-utils.c:
      	  - improve the indentation in some places.
      	  - (screenshooter_open_screenshot):
      	    + declare the variables at the beginning of the code block.
                  + use g_spawn_command_line_async to launch the applications.
      	* lib/screenshooter-dialogs.c: improve the indentation.
      
      
      (Old svn revision: 7216)
      6d790eac
  8. Mar 14, 2009
    • Jerome Guelfucci's avatar
      Fix most of the issues introduced by the previous commit. · bd16867e
      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)
      bd16867e
  9. Feb 26, 2009
  10. Feb 22, 2009
  11. Jan 18, 2009
  12. Jan 14, 2009
  13. Jan 09, 2009
  14. Jan 05, 2009
  15. Jan 02, 2009
  16. Dec 28, 2008
  17. Dec 16, 2008
  18. Dec 13, 2008
  19. Dec 12, 2008
  20. Dec 06, 2008
  21. Nov 30, 2008
    • Jerome Guelfucci's avatar
      Make some strings consistent. · f29d2893
      Jerome Guelfucci authored
      (Old svn revision: 6237)
      f29d2893
    • Jerome Guelfucci's avatar
      * src/main.c: · 0e5a0481
      Jerome Guelfucci authored
          - remove preferences CLI option , the application can set the
            default save folder now.
          - fix the rc file mess. Use xfce_resource_lookup and 
            xfce_resource_save_location so that folders get created if they
            don't exist. Thanks to Nick Schermer for helping.
        * lib/screenshooter-utils.{c,h}:
          - remove the dir_only option in (screenshooter_read_rc_file).
        * lib/screenshooter-dialogs.{c,h}:
          - remove (screenshooter_preferences_dialog).
        *lib/screenshooter-actions.c:
          - don't hardcode "/tmp", use g_get_tmp_dir () instead.
        * panel-plugin/screenshooter-plugin.c:
          - use new syntax for screenshooter_read_rc_file.
      
      
      (Old svn revision: 6235)
      0e5a0481
  22. Nov 28, 2008
  23. Nov 26, 2008
    • Jerome Guelfucci's avatar
      * lib/screenshooter-dialogs.c: · af1d10ca
      Jerome Guelfucci authored
          - merge the save checkbox and the default save location filechooser
          to a single line.
          - remove some unused variables.
        * panel-plugin/screenshooter-plugin.c: update the tooltips.
      
      
      
      (Old svn revision: 6203)
      af1d10ca
  24. Nov 24, 2008
    • Jerome Guelfucci's avatar
      * lib/screenshooter-utils.c: · 56c5e1b7
      Jerome Guelfucci authored
          - re-add "none" application, fixes the segfault in the plugin 
            dialog.
        * lib/screenshooter-dialogs.c (screenshooter_dialog_new):
          - add a "Application:" label.
          - Improve the layout.
          - the "Default save location" label should not be bold.
      
      
      (Old svn revision: 6194)
      56c5e1b7
  25. Nov 22, 2008
    • Jerome Guelfucci's avatar
      First step towards adding "copy to clipboard" functionnality. This commits may... · 71696ae6
      Jerome Guelfucci authored
      First step towards adding "copy to clipboard" functionnality. This commits may break a few things which will be fixed later. Based on the work of David Collins.
      
        * lib/screenshooter-utils.{c,h}:
          - fix includes
          - cleanup prototypes
          - (screenshooter_copy_to_clipboard) Partially apply a patch by 
            David Collins to add copying to clipboard possibility.
          - add post screenshot actions in the ScreenshotData struct, in
            (screenshooter_read_rc_file) and in (screenshooter_write_rc_file)
            (Patch by David Collins).
          - remove all references to "none" application.
        * lib/screenshooter-dialogs.{c,h}:
          - remove all references to none application.
          - remove (cb_combo_active_item_set_sensitive).
          - remove "none" item from (add_item).
        * lib/screenshooter-actions.{c,h}:
          - added to manage post screenshot actions.
        * lib/Mafile.am: add new source files.
        * lib/libscreenshooter.h: include screenshooter-actions.h.
        * src/main.c, panel-plugin/screenshooter-plugin.c: 
          - use (screenshooter_take_and_output_screenshot).
      
      
      (Old svn revision: 6156)
      71696ae6
  26. Nov 15, 2008
Loading