aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-hosts-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/ephy-hosts-store.c')
-rw-r--r--lib/widgets/ephy-hosts-store.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/widgets/ephy-hosts-store.c b/lib/widgets/ephy-hosts-store.c
index ed76072e6..99fff4833 100644
--- a/lib/widgets/ephy-hosts-store.c
+++ b/lib/widgets/ephy-hosts-store.c
@@ -20,8 +20,11 @@
*/
#include "config.h"
+
#include "ephy-hosts-store.h"
+#include <glib/gi18n.h>
+
G_DEFINE_TYPE (EphyHostsStore, ephy_hosts_store, GTK_TYPE_LIST_STORE)
static void
@@ -99,3 +102,13 @@ ephy_hosts_store_get_host_from_path (EphyHostsStore *store,
-1);
return host;
}
+
+void
+ephy_hosts_store_clear (EphyHostsStore *store)
+{
+ gtk_list_store_clear (GTK_LIST_STORE (store));
+ gtk_list_store_insert_with_values (GTK_LIST_STORE (store), NULL, 0,
+ EPHY_HOSTS_STORE_COLUMN_ID, 0,
+ EPHY_HOSTS_STORE_COLUMN_TITLE, _("All sites"),
+ -1);
+}