aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-combined-stop-reload-action.h
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2011-12-16 00:27:35 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2011-12-18 01:47:58 +0800
commitb1cd68562f3ceaf17a803f0f9161c28fdc5ba766 (patch)
tree32706d6771ef799bd17c051b1bd42ba218fc429f /src/ephy-combined-stop-reload-action.h
parent33cb922f3c7135a8f4e696f4637d1a6878b93b62 (diff)
downloadgsoc2013-epiphany-b1cd68562f3ceaf17a803f0f9161c28fdc5ba766.tar
gsoc2013-epiphany-b1cd68562f3ceaf17a803f0f9161c28fdc5ba766.tar.gz
gsoc2013-epiphany-b1cd68562f3ceaf17a803f0f9161c28fdc5ba766.tar.bz2
gsoc2013-epiphany-b1cd68562f3ceaf17a803f0f9161c28fdc5ba766.tar.lz
gsoc2013-epiphany-b1cd68562f3ceaf17a803f0f9161c28fdc5ba766.tar.xz
gsoc2013-epiphany-b1cd68562f3ceaf17a803f0f9161c28fdc5ba766.tar.zst
gsoc2013-epiphany-b1cd68562f3ceaf17a803f0f9161c28fdc5ba766.zip
Combine the Reload and Stop toolbar buttons into one
Add a combined action that toggles itself between the two states and instantiate it from the window. Replace the Reload and Stop buttons with the combined one in the default toolbar description. https://bugzilla.gnome.org/show_bug.cgi?id=657655
Diffstat (limited to 'src/ephy-combined-stop-reload-action.h')
-rw-r--r--src/ephy-combined-stop-reload-action.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/ephy-combined-stop-reload-action.h b/src/ephy-combined-stop-reload-action.h
new file mode 100644
index 000000000..680f3fec0
--- /dev/null
+++ b/src/ephy-combined-stop-reload-action.h
@@ -0,0 +1,61 @@
+/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set sw=2 ts=2 sts=2 et: */
+/*
+ * Copyright © 2011 Igalia S.L.
+ *
+ * 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef _EPHY_COMBINED_STOP_RELOAD_ACTION_H
+#define _EPHY_COMBINED_STOP_RELOAD_ACTION_H
+
+#include <glib-object.h>
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define EPHY_TYPE_COMBINED_STOP_RELOAD_ACTION (ephy_combined_stop_reload_action_get_type())
+#define EPHY_COMBINED_STOP_RELOAD_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EPHY_TYPE_COMBINED_STOP_RELOAD_ACTION, EphyCombinedStopReloadAction))
+#define EPHY_COMBINED_STOP_RELOAD_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EPHY_TYPE_COMBINED_STOP_RELOAD_ACTION, EphyCombinedStopReloadActionClass))
+#define EPHY_IS_COMBINED_STOP_RELOAD_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EPHY_TYPE_COMBINED_STOP_RELOAD_ACTION))
+#define EPHY_IS_COMBINED_STOP_RELOAD_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EPHY_TYPE_COMBINED_STOP_RELOAD_ACTION))
+#define EPHY_COMBINED_STOP_RELOAD_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EPHY_TYPE_COMBINED_STOP_RELOAD_ACTION, EphyCombinedStopReloadActionClass))
+
+typedef struct _EphyCombinedStopReloadAction EphyCombinedStopReloadAction;
+typedef struct _EphyCombinedStopReloadActionClass EphyCombinedStopReloadActionClass;
+typedef struct _EphyCombinedStopReloadActionPrivate EphyCombinedStopReloadActionPrivate;
+
+struct _EphyCombinedStopReloadAction
+{
+ GtkAction parent;
+
+ /*< private >*/
+ EphyCombinedStopReloadActionPrivate *priv;
+};
+
+struct _EphyCombinedStopReloadActionClass
+{
+ GtkActionClass parent_class;
+};
+
+GType ephy_combined_stop_reload_action_get_type (void) G_GNUC_CONST;
+
+void ephy_combined_stop_reload_action_set_loading (EphyCombinedStopReloadAction *action,
+ gboolean loading);
+
+G_END_DECLS
+
+#endif /* _EPHY_COMBINED_STOP_RELOAD_ACTION_H */