summaryrefslogtreecommitdiff
path: root/thunar/thunar-abstract-dialog.h
diff options
context:
space:
mode:
authorBenedikt Meurer <benny@xfce.org>2006-02-14 23:58:24 +0000
committerBenedikt Meurer <benny@xfce.org>2006-02-14 23:58:24 +0000
commit0f001e849297ff69abb40fa564f97901de7b8542 (patch)
treec98d68d99f91ad2f3d85061bf82defcccd7d12ce /thunar/thunar-abstract-dialog.h
parent2d1bec0efb251393b536fd387701a79d9cfe0e84 (diff)
downloadthunar-0f001e849297ff69abb40fa564f97901de7b8542.tar.gz
2006-02-14 Benedikt Meurer <benny@xfce.org>
* thunar-vfs/thunar-vfs-xfer.c, thunar-vfs/thunar-vfs-chmod-job.c, thunar-vfs/thunar-vfs-chown-job.c: Be more consistent with error messages. * thunar/thunar-shortcuts-view.c: Even more consistency. * thunar/thunar-abstract-dialog.{c,h}, thunar/Makefile.am: Add new abstract class ThunarAbstractDialog, which overrides GtkDialog::close and provides additional keybindings for the "close" action. Bug #1380. * thunar/thunar-chooser-dialog.c, thunar/thunar-create-dialog.c, thunar/thunar-location-dialog.c, thunar/thunar-preferences-dialog.c, thunar/thunar-properties-dialog.c: Derive from ThunarAbstractDialog, so all dialogs/windows in Thunar can be closed using the same keyboard shortcuts and people can customize these shortcuts using the standard GtkBindingSet mechanism. Bug #1380. * po/Thunar.pot, po/*.po: Update translations. * po/de.po: "Gerät auswerfen" is probably not the best translation for "Eject Volume". ;-) * po/de.po: Even more love for the german translation. (Old svn revision: 19881)
Diffstat (limited to 'thunar/thunar-abstract-dialog.h')
-rw-r--r--thunar/thunar-abstract-dialog.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/thunar/thunar-abstract-dialog.h b/thunar/thunar-abstract-dialog.h
new file mode 100644
index 00000000..604df1d2
--- /dev/null
+++ b/thunar/thunar-abstract-dialog.h
@@ -0,0 +1,51 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2006 Benedikt Meurer <benny@xfce.org>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * This program 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 General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __THUNAR_ABSTRACT_DIALOG_H__
+#define __THUNAR_ABSTRACT_DIALOG_H__
+
+#include <exo/exo.h>
+
+G_BEGIN_DECLS;
+
+typedef struct _ThunarAbstractDialogClass ThunarAbstractDialogClass;
+typedef struct _ThunarAbstractDialog ThunarAbstractDialog;
+
+#define THUNAR_TYPE_ABSTRACT_DIALOG (thunar_abstract_dialog_get_type ())
+#define THUNAR_ABSTRACT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), THUNAR_TYPE_ABSTRACT_DIALOG, ThunarAbstractDialog))
+#define THUNAR_ABSTRACT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), THUNAR_TYPE_ABSTRACT_DIALOG, ThunarAbstractDialogClass))
+#define THUNAR_IS_ABSTRACT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), THUNAR_TYPE_ABSTRACT_DIALOG))
+#define THUNAR_IS_ABSTRACT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), THUNAR_TYPE_ABSTRACT_DIALOG))
+#define THUNAR_ABSTRACT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), THUNAR_TYPE_ABSTRACT_DIALOG, ThunarAbstractDialog))
+
+struct _ThunarAbstractDialogClass
+{
+ GtkDialogClass __parent__;
+};
+
+struct _ThunarAbstractDialog
+{
+ GtkDialog __parent__;
+};
+
+GType thunar_abstract_dialog_get_type (void) G_GNUC_CONST;
+
+G_END_DECLS;
+
+#endif /* !__THUNAR_ABSTRACT_DIALOG_H__ */