aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-10-28 03:54:57 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-28 03:54:57 +0800
commit529f8a142ef1b5cf04062216a442c5f492ec12e0 (patch)
tree39703b62f4fc8b29a4c80340f6be9217f760eaa1 /src
parent9b7fb421b624db43270af92c9742961a07260b90 (diff)
downloadgsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar.gz
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar.bz2
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar.lz
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar.xz
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.tar.zst
gsoc2013-epiphany-529f8a142ef1b5cf04062216a442c5f492ec12e0.zip
Private data is 0-initialised, no need to set members to NULL, 0, or
2004-10-27 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-dialog.c: (ephy_embed_dialog_init): * embed/ephy-embed-persist.c: (ephy_embed_persist_init), (ephy_embed_persist_to_string): * embed/ephy-embed-shell.c: (ephy_embed_shell_init): * embed/find-dialog.c: (find_dialog_init): * embed/mozilla/mozilla-embed-persist.cpp: * embed/mozilla/mozilla-embed-single.cpp: * lib/ephy-dialog.c: (ephy_dialog_set_modal), (ephy_dialog_init): * lib/ephy-file-chooser.c: (ephy_file_chooser_init): * lib/ephy-node-db.c: (ephy_node_db_init): * lib/widgets/ephy-node-view.c: (ephy_node_view_init): * lib/widgets/ephy-search-entry.c: (ephy_search_entry_init): * src/bookmarks/ephy-bookmark-action.c: (ephy_bookmark_action_init): * src/bookmarks/ephy-bookmark-properties.c: (ephy_bookmark_properties_init): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init): * src/bookmarks/ephy-favorites-menu.c: (ephy_favorites_menu_init): * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_init): * src/bookmarks/ephy-topics-selector.c: (ephy_topics_selector_init): * src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init): * src/ephy-encoding-menu.c: (ephy_encoding_menu_init): * src/ephy-favicon-action.c: (ephy_favicon_action_init): * src/ephy-location-action.c: (ephy_location_action_init): * src/ephy-notebook.c: (ephy_notebook_init): * src/ephy-session.c: (ephy_session_init): * src/ephy-shell.c: (ephy_shell_init): * src/ephy-tab.c: (ephy_tab_init): * src/ephy-tabs-menu.c: (ephy_tabs_menu_init): * src/ephy-window.c: (ephy_window_init): * src/pdm-dialog.c: (pdm_dialog_init): * src/ppview-toolbar.c: (ppview_toolbar_init): Private data is 0-initialised, no need to set members to NULL, 0, or FALSE.
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmark-action.c4
-rw-r--r--src/bookmarks/ephy-bookmark-properties.c2
-rw-r--r--src/bookmarks/ephy-bookmarks.c4
-rw-r--r--src/bookmarks/ephy-favorites-menu.c3
-rw-r--r--src/bookmarks/ephy-new-bookmark.c4
-rw-r--r--src/bookmarks/ephy-topics-selector.c2
-rw-r--r--src/ephy-encoding-dialog.c3
-rw-r--r--src/ephy-encoding-menu.c6
-rw-r--r--src/ephy-favicon-action.c2
-rw-r--r--src/ephy-location-action.c1
-rw-r--r--src/ephy-notebook.c3
-rw-r--r--src/ephy-session.c5
-rw-r--r--src/ephy-shell.c10
-rw-r--r--src/ephy-tab.c9
-rw-r--r--src/ephy-tabs-menu.c3
-rw-r--r--src/ephy-window.c9
-rwxr-xr-xsrc/pdm-dialog.c3
-rwxr-xr-xsrc/ppview-toolbar.c2
18 files changed, 1 insertions, 74 deletions
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c
index 33b04ba55..f8bc243f8 100644
--- a/src/bookmarks/ephy-bookmark-action.c
+++ b/src/bookmarks/ephy-bookmark-action.c
@@ -959,10 +959,6 @@ ephy_bookmark_action_init (EphyBookmarkAction *action)
action->priv = EPHY_BOOKMARK_ACTION_GET_PRIVATE (action);
- action->priv->prop_dialog = NULL;
- action->priv->cache_handler = 0;
- action->priv->motion_handler = 0;
-
bookmarks = ephy_shell_get_bookmarks (ephy_shell);
node = ephy_bookmarks_get_smart_bookmarks (bookmarks);
ephy_node_signal_connect_object (node, EPHY_NODE_CHILD_ADDED,
diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c
index d95f2412b..51b15b454 100644
--- a/src/bookmarks/ephy-bookmark-properties.c
+++ b/src/bookmarks/ephy-bookmark-properties.c
@@ -425,8 +425,6 @@ static void
ephy_bookmark_properties_init (EphyBookmarkProperties *editor)
{
editor->priv = EPHY_BOOKMARK_PROPERTIES_GET_PRIVATE (editor);
-
- editor->priv->bookmark = NULL;
}
GtkWidget *
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c
index 2e6c0ca9a..ac2de3b28 100644
--- a/src/bookmarks/ephy-bookmarks.c
+++ b/src/bookmarks/ephy-bookmarks.c
@@ -678,12 +678,10 @@ ephy_bookmarks_init (EphyBookmarks *eb)
EphyNodeDb *db;
eb->priv = EPHY_BOOKMARKS_GET_PRIVATE (eb);
- eb->priv->toolbars_model = NULL;
db = ephy_node_db_new (EPHY_NODE_DB_BOOKMARKS);
eb->priv->db = db;
- eb->priv->dirty = FALSE;
- eb->priv->save_timeout_id = 0;
+
eb->priv->xml_file = g_build_filename (ephy_dot_dir (),
"ephy-bookmarks.xml",
NULL);
diff --git a/src/bookmarks/ephy-favorites-menu.c b/src/bookmarks/ephy-favorites-menu.c
index 673d7b407..f3d79e43b 100644
--- a/src/bookmarks/ephy-favorites-menu.c
+++ b/src/bookmarks/ephy-favorites-menu.c
@@ -279,9 +279,6 @@ ephy_favorites_menu_init (EphyFavoritesMenu *menu)
menu->priv = p;
menu->priv->bookmarks = ephy_shell_get_bookmarks (ephy_shell);
- menu->priv->ui_id = 0;
- menu->priv->update_tag = 0;
- menu->priv->action_group = NULL;
fav = ephy_bookmarks_get_favorites (menu->priv->bookmarks);
ephy_node_signal_connect_object (fav,
diff --git a/src/bookmarks/ephy-new-bookmark.c b/src/bookmarks/ephy-new-bookmark.c
index 1b37f6fa5..82cb28dfd 100644
--- a/src/bookmarks/ephy-new-bookmark.c
+++ b/src/bookmarks/ephy-new-bookmark.c
@@ -434,10 +434,6 @@ static void
ephy_new_bookmark_init (EphyNewBookmark *editor)
{
editor->priv = EPHY_NEW_BOOKMARK_GET_PRIVATE (editor);
-
- editor->priv->location = NULL;
- editor->priv->icon = NULL;
- editor->priv->id = 0;
}
void
diff --git a/src/bookmarks/ephy-topics-selector.c b/src/bookmarks/ephy-topics-selector.c
index 01aca9a41..b6d268c3a 100644
--- a/src/bookmarks/ephy-topics-selector.c
+++ b/src/bookmarks/ephy-topics-selector.c
@@ -261,8 +261,6 @@ static void
ephy_topics_selector_init (EphyTopicsSelector *selector)
{
selector->priv = EPHY_TOPICS_SELECTOR_GET_PRIVATE (selector);
- selector->priv->bookmark = NULL;
- selector->priv->topics = NULL;
selector->priv->filter = ephy_node_filter_new ();
ephy_node_filter_add_expression (selector->priv->filter,
diff --git a/src/ephy-encoding-dialog.c b/src/ephy-encoding-dialog.c
index dbc43262a..bf5d16bb1 100644
--- a/src/ephy-encoding-dialog.c
+++ b/src/ephy-encoding-dialog.c
@@ -298,9 +298,6 @@ ephy_encoding_dialog_init (EphyEncodingDialog *dialog)
EPHY_ENCODINGS (ephy_embed_shell_get_encodings
(EPHY_EMBED_SHELL (ephy_shell)));
- dialog->priv->update_tag = FALSE;
- dialog->priv->selected_node = NULL;
-
ephy_dialog_construct (EPHY_DIALOG (dialog),
properties,
ephy_file ("epiphany.glade"),
diff --git a/src/ephy-encoding-menu.c b/src/ephy-encoding-menu.c
index e2a10a014..1e48e795b 100644
--- a/src/ephy-encoding-menu.c
+++ b/src/ephy-encoding-menu.c
@@ -103,12 +103,6 @@ ephy_encoding_menu_init (EphyEncodingMenu *menu)
menu->priv->encodings =
EPHY_ENCODINGS (ephy_embed_shell_get_encodings
(EPHY_EMBED_SHELL (ephy_shell)));
-
- menu->priv->update_tag = FALSE;
- menu->priv->action_group = NULL;
- menu->priv->merge_id = 0;
- menu->priv->encodings_radio_group = NULL;
- menu->priv->dialog = NULL;
}
static int
diff --git a/src/ephy-favicon-action.c b/src/ephy-favicon-action.c
index 0951b1ede..95f14edb9 100644
--- a/src/ephy-favicon-action.c
+++ b/src/ephy-favicon-action.c
@@ -306,8 +306,6 @@ ephy_favicon_action_init (EphyFaviconAction *action)
{
action->priv = EPHY_FAVICON_ACTION_GET_PRIVATE (action);
- action->priv->icon = NULL;
-
action->priv->cache = EPHY_FAVICON_CACHE
(ephy_embed_shell_get_favicon_cache
(EPHY_EMBED_SHELL (ephy_shell)));
diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c
index bfb3440bf..eae9a6a6b 100644
--- a/src/ephy-location-action.c
+++ b/src/ephy-location-action.c
@@ -498,7 +498,6 @@ ephy_location_action_init (EphyLocationAction *action)
action->priv = EPHY_LOCATION_ACTION_GET_PRIVATE (action);
action->priv->address = g_strdup ("");
- action->priv->actions = NULL;
action->priv->editable = TRUE;
action->priv->bookmarks = ephy_shell_get_bookmarks (ephy_shell);
action->priv->smart_bmks = ephy_bookmarks_get_smart_bookmarks
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 8c97d9228..d4fafb810 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -678,9 +678,6 @@ ephy_notebook_init (EphyNotebook *notebook)
g_object_ref (G_OBJECT (notebook->priv->title_tips));
gtk_object_sink (GTK_OBJECT (notebook->priv->title_tips));
- notebook->priv->drag_in_progress = FALSE;
- notebook->priv->motion_notify_handler_id = 0;
- notebook->priv->focused_pages = NULL;
notebook->priv->show_tabs = TRUE;
g_signal_connect (notebook, "button-press-event",
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 42a6b8af5..60fb877c7 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -269,11 +269,6 @@ ephy_session_init (EphySession *session)
LOG ("EphySession initialising")
- session->priv->windows = NULL;
- session->priv->tool_windows = NULL;
- session->priv->resume_dialog = NULL;
- session->priv->resuming = FALSE;
-
ensure_session_directory ();
}
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 49ff5d9a7..78ad65c59 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -175,16 +175,6 @@ ephy_shell_init (EphyShell *shell)
shell->priv = EPHY_SHELL_GET_PRIVATE (shell);
- shell->priv->session = NULL;
- shell->priv->bookmarks = NULL;
- shell->priv->bme = NULL;
- shell->priv->history_window = NULL;
- shell->priv->pdm_dialog = NULL;
- shell->priv->print_setup_dialog = NULL;
- shell->priv->toolbars_model = NULL;
- shell->priv->fs_toolbars_model = NULL;
- shell->priv->extensions_manager = NULL;
-
/* globally accessible singleton */
g_assert (ephy_shell == NULL);
ephy_shell = shell;
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index aba0f8f40..f63e94ccd 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -1558,23 +1558,14 @@ ephy_tab_init (EphyTab *tab)
tab->priv = EPHY_TAB_GET_PRIVATE (tab);
- tab->priv->status_message = NULL;
- tab->priv->link_message = NULL;
tab->priv->total_requests = 0;
tab->priv->cur_requests = 0;
tab->priv->width = -1;
tab->priv->height = -1;
- tab->priv->title = NULL;
- tab->priv->address = NULL;
- tab->priv->icon_address = NULL;
tab->priv->load_percent = 0;
tab->priv->load_status = FALSE;
- tab->priv->link_message = NULL;
tab->priv->security_level = STATE_IS_UNKNOWN;
- tab->priv->hidden_popups = NULL;
- tab->priv->shown_popups = NULL;
tab->priv->zoom = 1.0;
- tab->priv->setting_zoom = FALSE;
tab->priv->address_expire = TAB_ADDRESS_EXPIRE_NOW;
embed = ephy_embed_factory_new_object (EPHY_TYPE_EMBED);
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c
index d59ecfc45..2ba5115dc 100644
--- a/src/ephy-tabs-menu.c
+++ b/src/ephy-tabs-menu.c
@@ -220,9 +220,6 @@ static void
ephy_tabs_menu_init (EphyTabsMenu *menu)
{
menu->priv = EPHY_TABS_MENU_GET_PRIVATE (menu);
-
- menu->priv->ui_id = 0;
- menu->priv->action_group = NULL;
}
static void
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 02bfb8a8a..4d7942014 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2300,16 +2300,7 @@ ephy_window_init (EphyWindow *window)
window->priv = EPHY_WINDOW_GET_PRIVATE (window);
- window->priv->active_tab = NULL;
- window->priv->closing = FALSE;
- window->priv->ppview_toolbar = NULL;
- window->priv->exit_fullscreen_popup = NULL;
- window->priv->num_tabs = 0;
- window->priv->has_size = FALSE;
window->priv->chrome = EPHY_EMBED_CHROME_ALL;
- window->priv->should_save_chrome = FALSE;
- window->priv->fullscreen_mode = FALSE;
- window->priv->ppv_mode = FALSE;
g_object_ref (ephy_shell);
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c
index 1432c637e..97b3bd2f0 100755
--- a/src/pdm-dialog.c
+++ b/src/pdm-dialog.c
@@ -807,9 +807,6 @@ pdm_dialog_init (PdmDialog *dialog)
dialog->priv = EPHY_PDM_DIALOG_GET_PRIVATE (dialog);
- dialog->priv->cookies = NULL;
- dialog->priv->passwords = NULL;
-
ephy_dialog_construct (EPHY_DIALOG(dialog),
properties,
ephy_file ("epiphany.glade"),
diff --git a/src/ppview-toolbar.c b/src/ppview-toolbar.c
index 219e163b1..fee8e5e4e 100755
--- a/src/ppview-toolbar.c
+++ b/src/ppview-toolbar.c
@@ -249,8 +249,6 @@ ppview_toolbar_init (PPViewToolbar *t)
{
t->priv = EPHY_PPVIEW_TOOLBAR_GET_PRIVATE (t);
- t->priv->window = NULL;
- t->priv->manager = NULL;
t->priv->current_page = 1;
}