aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-01-22 19:48:28 +0800
committerXan Lopez <xan@igalia.com>2012-01-22 19:48:28 +0800
commitd8a976f0e3f809917ff3c97263d23168bf850af3 (patch)
treee71460fd31fb5a6c47729317c36a94895a46dfd3 /src
parent383823d0aed5e18a8537c4461feb99e0f5c0f9b5 (diff)
downloadgsoc2013-epiphany-d8a976f0e3f809917ff3c97263d23168bf850af3.tar
gsoc2013-epiphany-d8a976f0e3f809917ff3c97263d23168bf850af3.tar.gz
gsoc2013-epiphany-d8a976f0e3f809917ff3c97263d23168bf850af3.tar.bz2
gsoc2013-epiphany-d8a976f0e3f809917ff3c97263d23168bf850af3.tar.lz
gsoc2013-epiphany-d8a976f0e3f809917ff3c97263d23168bf850af3.tar.xz
gsoc2013-epiphany-d8a976f0e3f809917ff3c97263d23168bf850af3.tar.zst
gsoc2013-epiphany-d8a976f0e3f809917ff3c97263d23168bf850af3.zip
window-commands.h: remove duplicate and obsolete stuff, reformat a bit
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.h194
1 files changed, 81 insertions, 113 deletions
diff --git a/src/window-commands.h b/src/window-commands.h
index 70cc9e597..45a0b2050 100644
--- a/src/window-commands.h
+++ b/src/window-commands.h
@@ -17,124 +17,92 @@
*
*/
-#include <gtk/gtk.h>
-
-#include "ephy-window.h"
-
-void window_cmd_edit_find (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_view_stop (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_go_location (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_go_myportal (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_go_location (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_view_reload (GtkAction *action,
- EphyWindow *window);
+#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION)
+#error "Only <epiphany/epiphany.h> can be included directly."
+#endif
-void window_cmd_new (GtkAction *action,
- EphyWindow *window);
+#ifndef WINDOW_COMMANDS_H
+#define WINDOW_COMMANDS_H
-void window_cmd_file_bookmark_page(GtkAction *action,
- EphyWindow *window);
+#include "ephy-window.h"
-void window_cmd_file_open (GtkAction *action,
- EphyWindow *window);
+#include <gtk/gtk.h>
-void window_cmd_file_save_as (GtkAction *action,
- EphyWindow *window);
+G_BEGIN_DECLS
-void window_cmd_file_save_as_application (GtkAction *action,
+void window_cmd_edit_find (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_view_stop (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_go_location (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_view_reload (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_new (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_file_bookmark_page (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_file_open (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_file_save_as (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_file_save_as_application (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_file_print (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_file_send_to (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_file_work_offline (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_file_close_window (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_edit_undo (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_edit_redo (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_edit_cut (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_edit_copy (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_edit_paste (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_edit_delete (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_edit_select_all (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_edit_find_next (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_edit_find_prev (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_view_fullscreen (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_view_zoom_in (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_view_zoom_out (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_view_zoom_normal (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_view_page_source (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_view_page_security_info (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_help_about (GtkAction *action,
+ GtkWidget *window);
+void window_cmd_tabs_next (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_tabs_previous (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_tabs_move_left (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_tabs_move_right (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_tabs_detach (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_load_location (GtkAction *action,
+ EphyWindow *window);
+void window_cmd_browse_with_caret (GtkAction *action,
EphyWindow *window);
-void window_cmd_file_print (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_file_send_to (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_file_work_offline (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_file_close_window (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_edit_undo (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_edit_redo (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_edit_cut (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_edit_copy (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_edit_paste (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_edit_delete (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_edit_select_all (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_edit_find_next (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_edit_find_prev (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_view_fullscreen (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_view_zoom_in (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_view_zoom_out (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_view_zoom_normal(GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_view_page_source(GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_view_page_security_info (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_edit_toolbar (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_help_about (GtkAction *action,
- GtkWidget *window);
-
-void window_cmd_tabs_next (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_tabs_previous (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_tabs_move_left (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_tabs_move_right (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_tabs_detach (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_load_location (GtkAction *action,
- EphyWindow *window);
-
-void window_cmd_browse_with_caret (GtkAction *action,
- EphyWindow *window);
+G_END_DECLS
+#endif