From f1883411d44c4435bc5527fff92201486d0d1d7a Mon Sep 17 00:00:00 2001 From: Benedikt Meurer Date: Tue, 29 Nov 2005 17:28:56 +0000 Subject: 2005-11-29 Benedikt Meurer * 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) --- thunar-uca/thunar-uca-context.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 thunar-uca/thunar-uca-context.h (limited to 'thunar-uca/thunar-uca-context.h') diff --git a/thunar-uca/thunar-uca-context.h b/thunar-uca/thunar-uca-context.h new file mode 100644 index 00000000..083c4d79 --- /dev/null +++ b/thunar-uca/thunar-uca-context.h @@ -0,0 +1,41 @@ +/* $Id$ */ +/*- + * Copyright (c) 2005 Benedikt Meurer + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __THUNAR_UCA_CONTEXT_H__ +#define __THUNAR_UCA_CONTEXT_H__ + +#include + +G_BEGIN_DECLS; + +typedef struct _ThunarUcaContext ThunarUcaContext; + +ThunarUcaContext *thunar_uca_context_new (GtkWidget *window, + GList *files) G_GNUC_INTERNAL; + +ThunarUcaContext *thunar_uca_context_ref (ThunarUcaContext *context) G_GNUC_INTERNAL; +void thunar_uca_context_unref (ThunarUcaContext *context) G_GNUC_INTERNAL; + +GList *thunar_uca_context_get_files (const ThunarUcaContext *context) G_GNUC_INTERNAL; +GtkWidget *thunar_uca_context_get_window (const ThunarUcaContext *context) G_GNUC_INTERNAL; + +G_END_DECLS; + +#endif /* !__THUNAR_UCA_CONTEXT_H__ */ -- cgit v1.2.1