summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Strip trailing whitespaceAndre Miranda2017-11-041-1/+1
|
* Rename thunarx methods *_actions to *_menu_itemsAndre Miranda2017-11-021-18/+18
|
* Eschew GtkAction from Thunarx APIAndre Miranda2017-11-021-15/+13
| | | | | | Instead use the new ThunarxMenuItem class and keep all the deprecated stuff internally, away from the extensions API.
* Remove subversion $Id$ tagsHarald Judt2015-05-228-13/+3
| | | | Remove them or replace them with vim modelines where appropriate.
* Autotools updates.Nick Schermer2013-01-061-1/+1
|
* Cleanup some example code.Nick Schermer2012-09-262-11/+5
|
* Fix the sample D-Bus client for the org.xfce.FileManager interface.Jannis Pohlmann2010-11-091-6/+6
| | | | | Make sure to always pass a fourth startup_id parameter to all D-Bus methods (add the parameter in the comments as well).
* Remove the G_GNUC_INTERNAL attributes from the example.Nick Schermer2009-09-271-2/+2
|
* Add -export-symbols-regex to the tex-open-terminal example extension.Jannis Pohlmann2009-09-261-0/+1
|
* Add the startup ID parameter to the code in comments as well.Jannis Pohlmann2009-09-161-1/+1
|
* Add missing parameter to the thunar-file-manager.py example script.Jannis Pohlmann2009-09-161-1/+1
| | | | | We now have startup notification support in the Thunar D-Bus interface which adds a startup ID parameter to some of the D-Bus methods.
* Drop some deprecated API.Nick Schermer2009-08-231-2/+0
| | | | | Most of them are the new tooltip api in plugins and GtkEntry -> GtkEditable functions.
* Fix several compiler warnings (mostly shadowed stuff, missing includes).Jannis Pohlmann2009-08-211-3/+11
|
* Merge the migration-to-gio branch into master.Jannis Pohlmann2009-08-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | I'm 100% sure I can implement all ThunarVFS thumbnailers on top of tumbler in time for the Xfce 4.8 release. Same about the volume monitor backend for GIO to avoid a GVfs dependency. So why not merge the GIO branch now? Not much to say about this merge. It replaces ThunarVFS with GIO inside Thunar and Thunarx, something I've been working on over the past few months. It currently requires GVfs for volume monitoring and also (optionally) depends on tumbler for thumbnail generation. Enjoy. All .po files are going to be updated in the next commit. Conflicts: ChangeLog INSTALL acinclude.m4 configure.in.in plugins/thunar-wallpaper/twp-provider.c po-doc/ChangeLog po/ChangeLog po/LINGUAS thunar-vfs/thunar-vfs-1.pc.in thunar-vfs/thunar-vfs-thumb.c thunar/thunar-templates-action.c
* 2006-03-24 Benedikt Meurer <benny@xfce.org>Benedikt Meurer2006-03-242-0/+68
| | | | | | | | | | | | | | | * thunar/thunar-renamer-progress.{c,h}: Add new helper method thunar_renamer_progress_running(), which tells whether the rename operation is currently in progress. * thunar/thunar-renamer-dialog.c(thunar_renamer_dialog_response): Fix the Cancel/Close button handling. * examples/nautilus-bulk-rename.py, examples/Makefile.am: Add an ex- ample how to use Thunar Bulk Rename as Nautilus extension. Bug #1597. (Old svn revision: 20528)
* 2006-03-24 Benedikt Meurer <benny@xfce.org>Benedikt Meurer2006-03-242-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * thunar/thunar-file.{c,h}: Add wrapper method thunar_file_get_for_uri() which is a rather common operation. * thunar/thunar-dbus-service.c (thunar_dbus_service_parse_uri_and_display): Use the newly added method thunar_file_get_for_uri(). * thunar/thunar-launcher.c: If no current directory is set, directories will always be opened in new windows. * thunar/thunar-renamer-progress.{c,h}: Add support for explicit cancellation of the rename operation. * thunar/thunar-renamer-dialog-ui.xml,thunar/thunar-renamer-model.{c,h}, thunar/thunar-renamer-dialog.{c,h}, thunar/Makefile.am: Some polish on the dialog and the model. Allow users to add/remove files using the context menu. Add a standalone mode in which the bulk rename dialog appears as standalone application and which can be invoked through the D-BUS service. Bug #1597. * thunar/thunar-standard-view.c(thunar_standard_view_action_rename): Keep up with the ThunarRenamerDialog changes. * thunar/main.c, thunar/thunar-application.{c,h}, thunar/thunar-dbus-client.{c,h}, thunar/thunar-dbus-service-infos.xml, thunar/thunar-dbus-service.c: Add BulkRename() method to the D-BUS interface org.xfce.Thunar and add command line option -B to Thunar, which allows to open the bulk rename dialog directly. Bug #1597. * Thunar-folder-handler.desktop.in.in, Thunar.desktop.in.in, Makefile.am: Rearrange the .desktop file handling. * Makefile.am, Thunar-bulk-rename.desktop.in.in, ThunarBulkRename.in: Add launcher for the bulk rename utility. Bug #1597. * examples/thunar-file-manager.py, examples/Makefile.am: Add example for the usage of the org.xfce.Thunar interface. * thunarx/thunarx-renamer.{c,h}, thunarx/thunarx.symbols: Add new method get_actions() to ThunarxRenamer, as discussed with Jannis, to allow plugin writers to add custom actions to the renamers tree view context menu (i.e. "Edit Tags" for the thunar-media-tag-plugin). First part of bug #1602. * docs/reference/thunarx/: Update the API docs. * thunar/thunar-renamer-dialog.c(thunar_renamer_dialog_context_menu), thunar/thunar-renamer-dialog-ui.xml: Add custom actions provided by the active ThunarxRenamer to the file context menu in the renamer dialog. Second part of bug #1602. * po/POTFILES.in: Add new files. * po/Thunar.pot, po/*.po: Merge new strings. * po/de.po: Update german translations. (Old svn revision: 20526)
* 2006-03-09 Benedikt Meurer <benny@xfce.org>Benedikt Meurer2006-03-091-0/+5
| | | | | | | | | | * examples/xfce-file-manager.py: Add note about DisplayFolderAndSelect() to the example. (Old svn revision: 20304)
* 2006-02-08 Benedikt Meurer <benny@xfce.org>Benedikt Meurer2006-02-082-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * thunar-vfs/thunar-vfs-util.{c,h}, thunar-vfs/thunar-vfs.symbols: Add new function thunar_vfs_canonicalize_filename(). * thunar-vfs/thunar-vfs-path.c(thunar_vfs_path_new): Use thunar_vfs_canonicalize_filename() on absolute paths. * docs/reference/thunar-vfs/: Update the thunar-vfs API docs. * thunar/thunar-dialogs.{c,h}: Use a generic parent parameter instead of a GtkWidget, so this method is also usable if no GtkWidget is none, but the dialog must appear on a specific screen. * thunar/thunar-application.{c,h}: Add a "daemon" property, which determines whether Thunar will exit once the last window is closed. Remove the D-BUS service here. Add process_filenames() method, to process the list of filenames given on the command line. Bug #1384. * thunar/main.c: Attach the D-BUS here. * Makefile.am, org.xfce.Thunar.service.in: Add Thunar specific service file. * thunar/thunar-dbus-service-infos.xml, thunar/thunar-dbus-service.c: Add the org.xfce.Thunar interface here, with currently only a LaunchFiles() method, which can process Thunar command line parameters in a remote instance. Bug #1384. * thunar/thunar-dbus-client.{c,h}, thunar/Makefile.am: Add convenience wrapper for the D-BUS LaunchFiles() of the org.xfce.Thunar interface, which is used on startup to first try to reuse an existing instance. This way new folder windows will popup instantly if an instance of Thunar is already running. * org.xfce.Thunar.service.in, org.xfce.FileManager.service.in, thunar/main.c: Add --daemon option and use it when starting from the message bus. Pass all additional parameters as file names to a run- ning remote instance or to ThunarApplication as fallback. Bug #1384. * examples/xfce-file-manager.py, examples/Makefile.am: Add a simple example how to communicate with the file manager using the D-BUS Python bindings. * po/Thunar.pot, po/*.po: Merge new strings. (Old svn revision: 19782)
* 2005-11-29 Benedikt Meurer <benny@xfce.org>Benedikt Meurer2005-11-291-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * thunar/thunar-standard-view.c (thunar_standard_view_merge_custom_actions): Fix typo. * thunarx/thunarx-private.{c,h}, thunarx/thunarx-menu-provider.c, thunarx/Makefile.am, thunarx/thunarx-property-page-provider.c: Add helper function thunarx_object_list_take_reference(), so we don't need to repeat the same code again and again. * thunar/thunar-window.c(action_entries): Add ... to the Preferences action, since it opens a dialog. Use "e" as mnemonic, as "P" is already used by "Paste". * thunar/thunar-standard-view.c(action_entries): Add ... to the Select by Pattern action, since it opens a dialog. * thunar/thunar-preferences-dialog.c: Close preferences dialog on Esc key press. * thunarx/thunarx-preferences-provider.{c,h}, thunarx/thunarx.h, thunarx/thunarx.symbols, thunarx/Makefile.am: Add new interface ThunarxPreferencesProvider, which can be implemented to add custom actions to the preferences section of the "Edit" menu. * thunar/thunar-window-ui.xml, thunar/thunar-window.c: Query custom preferences actions from the installed providers and add them to the preferences section of the "Edit" menu. Actions are loaded in an idle source to not delay folder loading when opening a new window, even if a lot of preferences providers are installed. * docs/reference/thunarx/: Update the thunarx reference documentation. * thunar-uca/, configure.in.in, Makefile.am: Import the thunar-uca module, which provides advanced users with an easy way to add custom actions to Thunar's context menus. With this extension in place there's no longer a need to add support G-Scripts (except maybe an importer for thunar-uca). * po/POTFILES.in: Add new translatable files. * po/: Merge new strings. * examples/tex-open-terminal/README: Add note to use thunar-uca, and consider the tex-open-terminal as example for extension writers. (Old svn revision: 18962)
* 2005-11-21 Benedikt Meurer <benny@xfce.org>Benedikt Meurer2005-11-217-253/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * thunarx/thunarx-provider-plugin.{c,h}, thunarx/Makefile.am, thunarx/thunarx.h, thunarx/thunarx.symbols: Add ThunarxProviderPlugin interface, which abstracts from the details of the dynamic type registration, and is accessible to the extensions. * thunarx/thunarx-provider-module.{c,h}, thunarx/Makefile.am: Add implementation for the ThunarxProviderPlugin interface, based on GTypeModule, which is used on the file manager's side to manage the type plugins. * thunarx/thunarx-provider-factory.{c,h}, thunarx/Makefile.am, thunarx/thunarx.h, thunarx/thunarx.symbols: Add ThunarxProviderFactory based on the ThunarExtensionManager as public interface to the provider plugin mechanism. This may also be used by other applications in the future. * thunarx/thunarx.h: Provide convenience macros ala G_DEFINE_TYPE() to ease type registration for plugin writers. * examples/, configure.in.in: Update the "Open Terminal Here" example. * docs/reference/thunarx/: Update the thunarx reference manual to include the new classes and interfaces. * thunar/thunar-extension-manager.{c,h}: Drop the old extension manager class in favour of the new provider factory class. * thunar/thunar-properties-dialog.c, thunar/thunar-standard-view.c: Use ThunarxProviderFactory to load the providers from the installed extensions. * po/POTFILES.in: Update with new file list. * thunar/thunar-file.{c,h}: Implement thunar_file_list_copy() using thunarx_file_info_list_copy() and thunar_file_list_free() using thunarx_file_info_list_free(). * docs/reference/thunar-vfs/thunar-vfs-overrides.txt, docs/reference/thunarx/thunarx-overrides.txt: Fix build error with older gtk-doc versions. (Old svn revision: 18919)
* 2005-09-22 Benedikt Meurer <benny@xfce.org>Benedikt Meurer2005-09-221-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * thunar-vfs/thunar-vfs-*.c: Documentation tweaks. * configure.in.in, docs/reference/Makefile.am, docs/reference/thunar-vfs/: Prepare Thunar-VFS reference manual. * thunar/thunar-list-model.c(thunar_list_model_get_statusbar_text): Use ngettext() for the statusbar text. * thunar/thunar-launcher.c(thunar_launcher_update): Use ngettext() for the "Open in n New Windows" menu label. * thunar/thunar-launcher.c(thunar_launcher_open_new_windows): Use ngettext() for the question whether to open n separate windows. * thunar/thunar-launcher.c(thunar_launcher_open_uris): Use ngettext() to format the error message when opening multiple URIs at once failes. * po/*.po: Update po files. * configure.in.in, examples/open-terminal-here/Makefile.am, thunar-vfs/Makefile.am, thunar/Makefile.am, thunarx/Makefile.am: Don't add debugging and visibility flags to CFLAGS, CPPFLAGS and LDFLAGS, but use PLATFORM_CFLAGS, PLATFORM_CPPFLAGS and PLATFORM_LDFLAGS instead to avoid trouble with certain conftests when checking the distribution. (Old svn revision: 17769)
* 2005-09-11 Benedikt Meurer <benny@xfce.org>Benedikt Meurer2005-09-111-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | * thunar/thunar-standard-view.c: Sort the extension actions by their names instead of their labels. * thunar/thunar-extension-manager.c(thunar_extension_class_init): Properly initialize the parent class reference. * examples/open-terminal-here/Makefile.am: Don't specify CLEANFILES explicitly. * thunar/thunar-file.c(thunar_file_get_mime_info): Documentation fix. * thunar-vfs/thunar-vfs-mime-database.c (thunar_vfs_mime_database_get_info_for_file): When generating an application/x-extension-<EXT> mime type and no valid extension is found for the file name, fallback to the whole filename as suggested by jrb. This way we can make sure that we will never return application/octet-stream from this method and thereby allow the program chooser to set default applications for every mime type used in the file manager. * thunar/Makefile.am: Add $(top_builddir) to INCLUDES. (Old svn revision: 17560)
* 2005-09-11 Benedikt Meurer <benny@xfce.org>Benedikt Meurer2005-09-111-2/+0
| | | | | | | | | | * examples/open-terminal-here/open-terminal-here.c (open_terminal_here_activate): Remove unused debug statement. (Old svn revision: 17555)
* 2005-09-09 Benedikt Meurer <benny@xfce.org>Benedikt Meurer2005-09-114-0/+307
* configure.in.in: Substitute version information. * thunar/thunar-window.c(thunar_window_action_about): Escape the copyright sign. * thunar/thunar-gdk-pixbuf-extensions.{c,h}, thunar/thunar-gtk-extensions.{c,h}, thunar/thunar-desktop-view.c, thunar/thunar-icon-factory.c, thunar/thunar-icon-renderer.c, thunar/thunar-standard-view.c, thunar/thunar-window.c, thunar/Makefile.am: Merge the GdkPixbuf and GTK+ extensions into the thunar namespace. * configure.in.in, thunarx/: Import the initial extensions library. * configure.in.in, docs/Makefile.am, Makefile.am, docs/reference/: Import the reference manual for the extensions library. * thunar/thunar-file.c: Implement the ThunarxFileInfo interface. * thunar/thunar-extension-manager.{c,h}, thunar/Makefile.am: Import the ThunarExtensionManager class. * thunar/thunar-standard-view-ui.xml, thunar/thunar-standard-view.c: Add support for context menu providers to the standard views. * po/POTFILES.in: Add thunarx/thunarx-property-page.c here. * thunar/thunar-properties-dialog.c: Add support for property page providers here. * Makefile.am, configure.in.in, examples/Makefile.am, examples/open-terminal-here/: Add "Open Terminal Here" menu provider example. (Old svn revision: 17553)