aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-helpers.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-04-19 19:14:42 +0800
committerChristian Persch <chpe@src.gnome.org>2005-04-19 19:14:42 +0800
commit0321e0c109de8225a82868cb1dc8cfb5455a544f (patch)
treec49d7669e88755118428d7f621b909ae4f04e449 /lib/ephy-file-helpers.c
parent11a2169cd187c06da6068cd8fa5f725202c680d4 (diff)
downloadgsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.gz
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.bz2
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.lz
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.xz
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.zst
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.zip
More constification.
2005-04-19 Christian Persch <chpe@cvs.gnome.org> * lib/egg/egg-editable-toolbar.c: (create_dock): * lib/egg/egg-toolbar-editor.c: (editor_create_item), (update_editor_sheet): * lib/ephy-file-helpers.c: (ephy_file): * lib/widgets/ephy-location-entry.c: (ephy_location_entry_construct_contents): * lib/widgets/ephy-node-view.c: (ephy_node_view_enable_drag_dest), (ephy_node_view_enable_drag_source): * lib/widgets/ephy-node-view.h: * src/ephy-encoding-menu.c: (ephy_encoding_menu_set_window): * src/ephy-history-window.c: (ephy_history_window_construct): * src/ephy-main.c: * src/ephy-notebook.c: (ephy_notebook_init), (ephy_notebook_add_tab): * src/ppview-toolbar.c: * src/window-commands.c: (window_cmd_help_about): More constification.
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r--lib/ephy-file-helpers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 955df8a68..8f06eba69 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -165,9 +165,9 @@ const char *
ephy_file (const char *filename)
{
char *ret;
- int i;
+ guint i;
- static char *paths[] =
+ static const char * const paths[] =
{
SHARE_DIR "/",
SHARE_DIR "/glade/",
@@ -183,7 +183,7 @@ ephy_file (const char *filename)
if (ret != NULL)
return ret;
- for (i = 0; i < (int) G_N_ELEMENTS (paths); i++)
+ for (i = 0; i < G_N_ELEMENTS (paths); i++)
{
ret = g_strconcat (paths[i], filename, NULL);
if (g_file_test (ret, G_FILE_TEST_EXISTS) == TRUE)
@@ -194,7 +194,7 @@ ephy_file (const char *filename)
g_free (ret);
}
- g_warning (_("Failed to find %s"), filename);
+ g_warning ("Failed to find %s\n", filename);
return NULL;
}