aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-shell.h
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-09-08 18:18:24 +0800
committerXan Lopez <xan@igalia.com>2012-09-08 18:18:24 +0800
commitedbe1a014af2331b587d4a84f91d0f87fe17f5c8 (patch)
treea86207e7c7c3ec2c341cc761b1fa77e4e8296db6 /embed/ephy-embed-shell.h
parent87b95b1006581e71ffbb80c45005108e81392596 (diff)
downloadgsoc2013-epiphany-edbe1a014af2331b587d4a84f91d0f87fe17f5c8.tar
gsoc2013-epiphany-edbe1a014af2331b587d4a84f91d0f87fe17f5c8.tar.gz
gsoc2013-epiphany-edbe1a014af2331b587d4a84f91d0f87fe17f5c8.tar.bz2
gsoc2013-epiphany-edbe1a014af2331b587d4a84f91d0f87fe17f5c8.tar.lz
gsoc2013-epiphany-edbe1a014af2331b587d4a84f91d0f87fe17f5c8.tar.xz
gsoc2013-epiphany-edbe1a014af2331b587d4a84f91d0f87fe17f5c8.tar.zst
gsoc2013-epiphany-edbe1a014af2331b587d4a84f91d0f87fe17f5c8.zip
ephy-embed-shell: use now coding style
Diffstat (limited to 'embed/ephy-embed-shell.h')
-rw-r--r--embed/ephy-embed-shell.h99
1 files changed, 42 insertions, 57 deletions
diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h
index 8f4717bde..2daee5fe8 100644
--- a/embed/ephy-embed-shell.h
+++ b/embed/ephy-embed-shell.h
@@ -1,4 +1,4 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2000-2003 Marco Pesenti Gritti
* Copyright © 2011 Igalia S.L.
@@ -26,88 +26,73 @@
#ifndef EPHY_EMBED_SHELL_H
#define EPHY_EMBED_SHELL_H
-#include <glib.h>
-#include <glib-object.h>
#include <gtk/gtk.h>
#include "ephy-download.h"
G_BEGIN_DECLS
-#define EPHY_TYPE_EMBED_SHELL (ephy_embed_shell_get_type ())
-#define EPHY_EMBED_SHELL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_EMBED_SHELL, EphyEmbedShell))
-#define EPHY_EMBED_SHELL_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_EMBED_SHELL, EphyEmbedShellClass))
-#define EPHY_IS_EMBED_SHELL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_EMBED_SHELL))
-#define EPHY_IS_EMBED_SHELL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_EMBED_SHELL))
-#define EPHY_EMBED_SHELL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_EMBED_SHELL, EphyEmbedShellClass))
+#define EPHY_TYPE_EMBED_SHELL (ephy_embed_shell_get_type ())
+#define EPHY_EMBED_SHELL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_EMBED_SHELL, EphyEmbedShell))
+#define EPHY_EMBED_SHELL_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_EMBED_SHELL, EphyEmbedShellClass))
+#define EPHY_IS_EMBED_SHELL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_EMBED_SHELL))
+#define EPHY_IS_EMBED_SHELL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_EMBED_SHELL))
+#define EPHY_EMBED_SHELL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_EMBED_SHELL, EphyEmbedShellClass))
-typedef struct _EphyEmbedShellClass EphyEmbedShellClass;
-typedef struct _EphyEmbedShell EphyEmbedShell;
-typedef struct _EphyEmbedShellPrivate EphyEmbedShellPrivate;
+typedef struct _EphyEmbedShellClass EphyEmbedShellClass;
+typedef struct _EphyEmbedShell EphyEmbedShell;
+typedef struct _EphyEmbedShellPrivate EphyEmbedShellPrivate;
extern EphyEmbedShell *embed_shell;
typedef enum
{
- EPHY_EMBED_SHELL_MODE_BROWSER,
- EPHY_EMBED_SHELL_MODE_PRIVATE,
- EPHY_EMBED_SHELL_MODE_APPLICATION,
- EPHY_EMBED_SHELL_MODE_TEST
+ EPHY_EMBED_SHELL_MODE_BROWSER,
+ EPHY_EMBED_SHELL_MODE_PRIVATE,
+ EPHY_EMBED_SHELL_MODE_APPLICATION,
+ EPHY_EMBED_SHELL_MODE_TEST
} EphyEmbedShellMode;
struct _EphyEmbedShell
{
- GtkApplication parent;
+ GtkApplication parent;
- /*< private >*/
- EphyEmbedShellPrivate *priv;
+ /*< private >*/
+ EphyEmbedShellPrivate *priv;
};
struct _EphyEmbedShellClass
{
- GtkApplicationClass parent_class;
+ GtkApplicationClass parent_class;
- void (* download_added) (EphyEmbedShell *shell, EphyDownload *download);
- void (* download_removed) (EphyEmbedShell *shell, EphyDownload *download);
+ void (* download_added) (EphyEmbedShell *shell, EphyDownload *download);
+ void (* download_removed) (EphyEmbedShell *shell, EphyDownload *download);
- void (* prepare_close) (EphyEmbedShell *shell);
+ void (* prepare_close) (EphyEmbedShell *shell);
- /*< private >*/
- GObject * (* get_embed_single) (EphyEmbedShell *shell);
+ /*< private >*/
+ GObject * (* get_embed_single) (EphyEmbedShell *shell);
};
-GType ephy_embed_shell_get_type (void);
-
-EphyEmbedShell *ephy_embed_shell_get_default (void);
-
-GObject *ephy_embed_shell_get_global_history_service (EphyEmbedShell *shell);
-
-GObject *ephy_embed_shell_get_encodings (EphyEmbedShell *shell);
-
-GObject *ephy_embed_shell_get_embed_single (EphyEmbedShell *shell);
-
-GObject *ephy_embed_shell_get_adblock_manager (EphyEmbedShell *shell);
-
-void ephy_embed_shell_prepare_close (EphyEmbedShell *shell);
-
-void ephy_embed_shell_set_page_setup (EphyEmbedShell *shell,
- GtkPageSetup *page_setup);
-
-GtkPageSetup *ephy_embed_shell_get_page_setup (EphyEmbedShell *shell);
-
-void ephy_embed_shell_set_print_settings (EphyEmbedShell *shell,
- GtkPrintSettings *settings);
-
-GtkPrintSettings *ephy_embed_shell_get_print_settings (EphyEmbedShell *shell);
-
-GList *ephy_embed_shell_get_downloads (EphyEmbedShell *shell);
-
-void ephy_embed_shell_add_download (EphyEmbedShell *shell,
- EphyDownload *download);
-void ephy_embed_shell_remove_download (EphyEmbedShell *shell,
- EphyDownload *download);
-
-EphyEmbedShellMode ephy_embed_shell_get_mode (EphyEmbedShell *shell);
+GType ephy_embed_shell_get_type (void);
+EphyEmbedShell *ephy_embed_shell_get_default (void);
+GObject *ephy_embed_shell_get_global_history_service (EphyEmbedShell *shell);
+GObject *ephy_embed_shell_get_encodings (EphyEmbedShell *shell);
+GObject *ephy_embed_shell_get_embed_single (EphyEmbedShell *shell);
+GObject *ephy_embed_shell_get_adblock_manager (EphyEmbedShell *shell);
+void ephy_embed_shell_prepare_close (EphyEmbedShell *shell);
+void ephy_embed_shell_set_page_setup (EphyEmbedShell *shell,
+ GtkPageSetup *page_setup);
+GtkPageSetup *ephy_embed_shell_get_page_setup (EphyEmbedShell *shell);
+void ephy_embed_shell_set_print_settings (EphyEmbedShell *shell,
+ GtkPrintSettings *settings);
+GtkPrintSettings *ephy_embed_shell_get_print_settings (EphyEmbedShell *shell);
+GList *ephy_embed_shell_get_downloads (EphyEmbedShell *shell);
+void ephy_embed_shell_add_download (EphyEmbedShell *shell,
+ EphyDownload *download);
+void ephy_embed_shell_remove_download (EphyEmbedShell *shell,
+ EphyDownload *download);
+EphyEmbedShellMode ephy_embed_shell_get_mode (EphyEmbedShell *shell);
G_END_DECLS