diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-11-01 05:38:28 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-11-01 05:38:28 +0800 |
commit | c2031745964bc6d65d61099cf2cacd768930fb39 (patch) | |
tree | ec2395eab207a8358f5e2a011140dd8d836549b1 /src/bookmarks/ephy-bookmarks.c | |
parent | 464bb25b7c896c097765e23e396ab82c38dc1eb8 (diff) | |
download | gsoc2013-epiphany-c2031745964bc6d65d61099cf2cacd768930fb39.tar gsoc2013-epiphany-c2031745964bc6d65d61099cf2cacd768930fb39.tar.gz gsoc2013-epiphany-c2031745964bc6d65d61099cf2cacd768930fb39.tar.bz2 gsoc2013-epiphany-c2031745964bc6d65d61099cf2cacd768930fb39.tar.lz gsoc2013-epiphany-c2031745964bc6d65d61099cf2cacd768930fb39.tar.xz gsoc2013-epiphany-c2031745964bc6d65d61099cf2cacd768930fb39.tar.zst gsoc2013-epiphany-c2031745964bc6d65d61099cf2cacd768930fb39.zip |
Constification.
2005-10-31 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-dbus.c:
* src/bookmarks/ephy-bookmarks-editor.c:
(ephy_bookmarks_editor_construct):
* src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init_defaults):
Constification.
Diffstat (limited to 'src/bookmarks/ephy-bookmarks.c')
-rw-r--r-- | src/bookmarks/ephy-bookmarks.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c index 4e661a497..52e5b4855 100644 --- a/src/bookmarks/ephy-bookmarks.c +++ b/src/bookmarks/ephy-bookmarks.c @@ -95,7 +95,6 @@ static const EphyBookmarksBookmarkInfo default_bookmarks [] = */ { N_("Search the web"), N_("http://www.google.com/search?q=%s&ie=UTF-8&oe=UTF-8") } }; -static int n_default_bookmarks = G_N_ELEMENTS (default_bookmarks); static const char *default_topics [] = { @@ -106,7 +105,6 @@ static const char *default_topics [] = N_("Travel"), N_("Work") }; -static int n_default_topics = G_N_ELEMENTS (default_topics); /* Signals */ enum @@ -162,12 +160,12 @@ ephy_bookmarks_init_defaults (EphyBookmarks *eb) { int i; - for (i = 0; i < n_default_topics; i++) + for (i = 0; i < G_N_ELEMENTS (default_topics); i++) { ephy_bookmarks_add_keyword (eb, _(default_topics[i])); } - for (i = 0; i < n_default_bookmarks; i++) + for (i = 0; i < G_N_ELEMENTS (default_bookmarks); i++) { EphyNode *bmk; |