aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/ephy-dialog.c20
-rw-r--r--lib/ephy-file-chooser.c2
-rw-r--r--lib/ephy-node-db.c2
-rw-r--r--lib/widgets/ephy-node-view.c5
-rw-r--r--lib/widgets/ephy-search-entry.c3
5 files changed, 7 insertions, 25 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c
index 36e86769a..114658828 100644
--- a/lib/ephy-dialog.c
+++ b/lib/ephy-dialog.c
@@ -83,11 +83,12 @@ struct EphyDialogPrivate
GHashTable *props;
GtkWidget *parent;
GtkWidget *dialog;
- gboolean modal;
- gboolean has_default_size;
- gboolean disposing;
- gboolean initialized;
- gboolean persist_position;
+
+ gboolean modal : 1;
+ gboolean has_default_size : 1;
+ gboolean disposing : 1;
+ gboolean initialized : 1;
+ gboolean persist_position : 1;
int default_width;
int default_height;
};
@@ -1088,7 +1089,7 @@ void
ephy_dialog_set_modal (EphyDialog *dialog,
gboolean is_modal)
{
- dialog->priv->modal = is_modal;
+ dialog->priv->modal = is_modal != FALSE;
gtk_window_set_modal (GTK_WINDOW(dialog->priv->dialog), is_modal);
}
@@ -1298,13 +1299,6 @@ ephy_dialog_init (EphyDialog *dialog)
{
dialog->priv = EPHY_DIALOG_GET_PRIVATE (dialog);
- dialog->priv->parent = NULL;
- dialog->priv->dialog = NULL;
- dialog->priv->name = NULL;
- dialog->priv->initialized = FALSE;
- dialog->priv->has_default_size = FALSE;
- dialog->priv->disposing = FALSE;
- dialog->priv->persist_position = FALSE;
dialog->priv->default_width = -1;
dialog->priv->default_height = -1;
diff --git a/lib/ephy-file-chooser.c b/lib/ephy-file-chooser.c
index fc0fcf7fa..7c933a3a5 100644
--- a/lib/ephy-file-chooser.c
+++ b/lib/ephy-file-chooser.c
@@ -98,8 +98,6 @@ static void
ephy_file_chooser_init (EphyFileChooser *dialog)
{
dialog->priv = EPHY_FILE_CHOOSER_GET_PRIVATE (dialog);
-
- dialog->priv->persist_key = NULL;
}
static GObject *
diff --git a/lib/ephy-node-db.c b/lib/ephy-node-db.c
index 27e27073b..09c6272c4 100644
--- a/lib/ephy-node-db.c
+++ b/lib/ephy-node-db.c
@@ -182,8 +182,6 @@ ephy_node_db_init (EphyNodeDb *db)
{
db->priv = EPHY_NODE_DB_GET_PRIVATE (db);
- db->priv->name = NULL;
-
/* id to node */
db->priv->id_to_node = g_ptr_array_new ();
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index a67709e9b..2ef02b648 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -1281,13 +1281,8 @@ ephy_node_view_init (EphyNodeView *view)
{
view->priv = EPHY_NODE_VIEW_GET_PRIVATE (view);
- view->priv->remove_if_cancelled = FALSE;
view->priv->toggle_column = -1;
- view->priv->filter = NULL;
- view->priv->editable_renderer = NULL;
- view->priv->edited_node = NULL;
view->priv->searchable_data_column = -1;
- view->priv->source_target_list = NULL;
view->priv->priority_column = -1;
view->priv->priority_prop_id = 0;
view->priv->sort_column = -1;
diff --git a/lib/widgets/ephy-search-entry.c b/lib/widgets/ephy-search-entry.c
index bb84a323c..0c4469e32 100644
--- a/lib/widgets/ephy-search-entry.c
+++ b/lib/widgets/ephy-search-entry.c
@@ -141,9 +141,6 @@ ephy_search_entry_init (EphySearchEntry *entry)
{
entry->priv = EPHY_SEARCH_ENTRY_GET_PRIVATE (entry);
- entry->priv->clearing = FALSE;
- entry->priv->timeout = 0;
-
g_signal_connect (G_OBJECT (entry),
"destroy",
G_CALLBACK (ephy_search_entry_destroy_cb),