summaryrefslogtreecommitdiff
path: root/thunar-uca/thunar-uca-context.h
diff options
context:
space:
mode:
authorBenedikt Meurer <benny@xfce.org>2005-11-29 17:28:56 +0000
committerBenedikt Meurer <benny@xfce.org>2005-11-29 17:28:56 +0000
commitf1883411d44c4435bc5527fff92201486d0d1d7a (patch)
tree22c78e33c2586f6fc991f1f4f0c51b9f9cc5a9bb /thunar-uca/thunar-uca-context.h
parentfe6fede9b75018166e66a9a48d35c1196e704e44 (diff)
downloadthunar-f1883411d44c4435bc5527fff92201486d0d1d7a.tar.gz
2005-11-29 Benedikt Meurer <benny@xfce.org>
* 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)
Diffstat (limited to 'thunar-uca/thunar-uca-context.h')
-rw-r--r--thunar-uca/thunar-uca-context.h41
1 files changed, 41 insertions, 0 deletions
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 <benny@xfce.org>
+ *
+ * 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 <gtk/gtk.h>
+
+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__ */