[epiphany/overview] ephy-overview: remove dead code and clean some warnings
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview] ephy-overview: remove dead code and clean some warnings
- Date: Mon, 20 Aug 2012 16:14:00 +0000 (UTC)
commit c5d92da6ed35eb7a1cdf68e53ebd59f0d3b4c823
Author: Claudio Saavedra <csaavedra igalia com>
Date: Mon Aug 20 19:10:28 2012 +0300
ephy-overview: remove dead code and clean some warnings
embed/ephy-overview.c | 44 ++------------------------------------------
1 files changed, 2 insertions(+), 42 deletions(-)
---
diff --git a/embed/ephy-overview.c b/embed/ephy-overview.c
index 3534f7a..0931893 100644
--- a/embed/ephy-overview.c
+++ b/embed/ephy-overview.c
@@ -31,11 +31,6 @@
#define EPHY_OVERVIEW_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_OVERVIEW, EphyOverviewPrivate))
-enum
-{
- PROP_0,
-};
-
struct _EphyOverviewPrivate
{
GtkWidget *frecent_view;
@@ -43,38 +38,6 @@ struct _EphyOverviewPrivate
G_DEFINE_TYPE (EphyOverview, ephy_overview, GTK_TYPE_GRID)
-static void
-ephy_overview_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec)
-{
- EphyOverview *overview = EPHY_OVERVIEW (object);
-
- switch (prop_id)
- {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- break;
- }
-}
-
-static void
-ephy_overview_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec)
-{
- EphyOverview *overview = EPHY_OVERVIEW (object);
-
- switch (prop_id)
- {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- break;
- }
-}
-
#if 0
static gboolean
active_view_item_deleted (GtkWidget *widget,
@@ -128,7 +91,6 @@ main_view_item_activated (GtkWidget *widget,
GtkTreePath *path,
EphyOverview *overview)
{
- guint position;
GtkTreeModel *model;
GtkTreeIter iter;
char *url;
@@ -187,7 +149,7 @@ ephy_overview_get_icon (const gchar *icon_name)
static void
ephy_overview_constructed (GObject *object)
{
- EphyOverviewStore *store;
+ EphyFrecentStore *store;
EphyOverview *self = EPHY_OVERVIEW (object);
GdkPixbuf *default_icon;
@@ -204,7 +166,7 @@ ephy_overview_constructed (GObject *object)
g_signal_connect (self->priv->frecent_view, "item-deleted",
G_CALLBACK (frecent_view_item_deleted), NULL);
- store = ephy_embed_shell_get_frecent_store (EPHY_EMBED_SHELL (ephy_shell_get_default()));
+ store = ephy_embed_shell_get_frecent_store (EPHY_EMBED_SHELL (ephy_embed_shell_get_default()));
g_object_set (G_OBJECT (store),
"default-icon", default_icon,
NULL);
@@ -243,8 +205,6 @@ ephy_overview_class_init (EphyOverviewClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->set_property = ephy_overview_set_property;
- object_class->get_property = ephy_overview_get_property;
object_class->constructed = ephy_overview_constructed;
g_signal_new ("open-link",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]