aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-07 02:14:42 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-07 02:14:42 +0800
commit35ad841aceed89072e2cc6f589405a6feb411f74 (patch)
tree2fdf16ad0c9c630733841728c9bd0e3406bae4ba /src/ephy-shell.c
parent58a62ea3932ab6bdb599a0c519460a56622fe884 (diff)
downloadgsoc2013-epiphany-35ad841aceed89072e2cc6f589405a6feb411f74.tar
gsoc2013-epiphany-35ad841aceed89072e2cc6f589405a6feb411f74.tar.gz
gsoc2013-epiphany-35ad841aceed89072e2cc6f589405a6feb411f74.tar.bz2
gsoc2013-epiphany-35ad841aceed89072e2cc6f589405a6feb411f74.tar.lz
gsoc2013-epiphany-35ad841aceed89072e2cc6f589405a6feb411f74.tar.xz
gsoc2013-epiphany-35ad841aceed89072e2cc6f589405a6feb411f74.tar.zst
gsoc2013-epiphany-35ad841aceed89072e2cc6f589405a6feb411f74.zip
Use glib-mkenums to generate the enum and flags get_type functions.
2005-01-06 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * embed/Makefile.am: * embed/ephy-embed-event.c: * embed/ephy-embed-event.h: * embed/ephy-embed-persist.c: * embed/ephy-embed-persist.h: * embed/ephy-embed.c: * embed/ephy-embed.h: * embed/ephy-permission-manager.c: * embed/ephy-permission-manager.h: * lib/egg/Makefile.am: * lib/egg/egg-toolbars-model.c: * lib/egg/egg-toolbars-model.h: * src/Makefile.am: * src/ephy-link.c: * src/ephy-link.h: * src/ephy-navigation-action.c: * src/ephy-shell.c: (ephy_shell_error_quark): * src/ephy-shell.h: * src/ephy-tab.c: * src/ephy-tab.h: * src/ephy-window.c: Use glib-mkenums to generate the enum and flags get_type functions.
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c93
1 files changed, 2 insertions, 91 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index cd64585c1..1e9fb000b 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -22,6 +22,7 @@
#include "config.h"
#include "ephy-shell.h"
+#include "ephy-type-builtins.h"
#include "ephy-embed-shell.h"
#include "eel-gconf-extensions.h"
#include "ephy-prefs.h"
@@ -57,7 +58,7 @@
#define EPHY_SHELL_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_SHELL, EphyShellPrivate))
-struct EphyShellPrivate
+struct _EphyShellPrivate
{
BonoboGenericFactory *automation_factory;
EphySession *session;
@@ -94,96 +95,6 @@ ephy_shell_error_quark (void)
return q;
}
-
-GType
-ephy_shell_error_get_type (void)
-{
- static GType type = 0;
-
- if (G_UNLIKELY (type == 0))
- {
- static const GEnumValue values[] =
- {
- { EPHY_SHELL_ERROR_MISSING_SERVER,
- "EPHY_SHELL_ERROR_MISSING_SERVER", "missing-server" },
- { EPHY_SHELL_ERROR_OBJECT_REG_FAILED,
- "EPHY_SHELL_ERROR_OBJECT_REG_FAILED", "object-reg-failed" },
- { EPHY_SHELL_ERROR_FACTORY_REG_FAILED,
- "EPHY_SHELL_ERROR_FACTORY_REG_FAILED", "factory-reg-failed" },
- { 0, NULL, NULL }
- };
- type = g_enum_register_static ("EphyShellError", values);
- }
- return type;
-}
-
-GType
-ephy_shell_startup_flags_get_type (void)
-{
- static GType type = 0;
-
- if (G_UNLIKELY (type == 0))
- {
- static const GFlagsValue values[] =
- {
- { EPHY_SHELL_STARTUP_TABS, "EPHY_SHELL_STARTUP_TABS",
- "tabs" },
- { EPHY_SHELL_STARTUP_EXISTING_WINDOW, "EPHY_SHELL_STARTUP_EXISTING_WINDOW",
- "existing-window" },
- { EPHY_SHELL_STARTUP_FULLSCREEN, "EPHY_SHELL_STARTUP_FULLSCREEN",
- "fullscreen" },
- { EPHY_SHELL_STARTUP_BOOKMARKS_EDITOR, "EPHY_SHELL_STARTUP_BOOKMARKS_EDITOR",
- "bookmarks-editor" },
- { EPHY_SHELL_STARTUP_SESSION, "EPHY_SHELL_STARTUP_SESSION",
- "session" },
- { EPHY_SHELL_STARTUP_IMPORT_BOOKMARKS, "EPHY_SHELL_STARTUP_IMPORT_BOOKMARKS",
- "import-bookmarks" },
- { EPHY_SHELL_STARTUP_ADD_BOOKMARK, "EPHY_SHELL_STARTUP_ADD_BOOKMARK",
- "add-bookmark" },
- { 0, NULL, NULL }
- };
- type = g_flags_register_static ("EphyShellStartupFlags", values);
- }
- return type;
-}
-
-
-GType
-ephy_new_tab_flags_get_type (void)
-{
- static GType type = 0;
-
- if (G_UNLIKELY (type == 0))
- {
- static const GFlagsValue values[] =
- {
- { EPHY_NEW_TAB_HOME_PAGE, "EPHY_NEW_TAB_HOME_PAGE",
- "home-page" },
- { EPHY_NEW_TAB_NEW_PAGE, "EPHY_NEW_TAB_NEW_PAGE",
- "new-page" },
- { EPHY_NEW_TAB_OPEN_PAGE, "EPHY_NEW_TAB_OPEN_PAGE",
- "open-page" },
- { EPHY_NEW_TAB_FULLSCREEN_MODE, "EPHY_NEW_TAB_FULLSCREEN_MODE",
- "fullscreen-mode" },
- { EPHY_NEW_TAB_APPEND_LAST, "EPHY_NEW_TAB_APPEND_LAST",
- "append-last" },
- { EPHY_NEW_TAB_APPEND_AFTER, "EPHY_NEW_TAB_APPEND_AFTER",
- "append-after" },
- { EPHY_NEW_TAB_JUMP, "EPHY_NEW_TAB_JUMP",
- "jump" },
- { EPHY_NEW_TAB_IN_NEW_WINDOW, "EPHY_NEW_TAB_IN_NEW_WINDOW",
- "new-window" },
- { EPHY_NEW_TAB_IN_EXISTING_WINDOW, "EPHY_NEW_TAB_IN_EXISTING_WINDOW",
- "existing-window" },
- { 0, NULL, NULL }
- };
- type = g_flags_register_static ("EphyNewTabFlags", values);
- }
- return type;
-}
-
-
-
GType
ephy_shell_get_type (void)
{