diff options
author | Christian Persch <chpe@src.gnome.org> | 2003-09-02 07:20:17 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-09-02 07:20:17 +0800 |
commit | 73a95385f4034998cc78199dc8bb9ee22d90d6aa (patch) | |
tree | 499d78ab52e8937f672e3659105dda083a34c988 /src/ephy-favicon-action.c | |
parent | 3375c1878c4c0ebf4f5067d128024ea484208f62 (diff) | |
download | gsoc2013-epiphany-73a95385f4034998cc78199dc8bb9ee22d90d6aa.tar gsoc2013-epiphany-73a95385f4034998cc78199dc8bb9ee22d90d6aa.tar.gz gsoc2013-epiphany-73a95385f4034998cc78199dc8bb9ee22d90d6aa.tar.bz2 gsoc2013-epiphany-73a95385f4034998cc78199dc8bb9ee22d90d6aa.tar.lz gsoc2013-epiphany-73a95385f4034998cc78199dc8bb9ee22d90d6aa.tar.xz gsoc2013-epiphany-73a95385f4034998cc78199dc8bb9ee22d90d6aa.tar.zst gsoc2013-epiphany-73a95385f4034998cc78199dc8bb9ee22d90d6aa.zip |
Mega-patch, changelog too long to paste here.
Diffstat (limited to 'src/ephy-favicon-action.c')
-rw-r--r-- | src/ephy-favicon-action.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/ephy-favicon-action.c b/src/ephy-favicon-action.c index 86b567095..4b8b290fb 100644 --- a/src/ephy-favicon-action.c +++ b/src/ephy-favicon-action.c @@ -14,6 +14,8 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ */ #include "ephy-favicon-action.h" @@ -37,6 +39,8 @@ static GtkTargetEntry url_drag_types [] = }; static int n_url_drag_types = G_N_ELEMENTS (url_drag_types); +#define EPHY_FAVICON_ACTION_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_FAVICON_ACTION, EphyFaviconActionPrivate)) + struct EphyFaviconActionPrivate { EphyWindow *window; @@ -271,12 +275,15 @@ ephy_favicon_action_class_init (EphyFaviconActionClass *class) "The icon", NULL, G_PARAM_READWRITE)); + + g_type_class_add_private (object_class, sizeof(EphyFaviconActionPrivate)); } static void ephy_favicon_action_init (EphyFaviconAction *action) { - action->priv = g_new0 (EphyFaviconActionPrivate, 1); + action->priv = EPHY_FAVICON_ACTION_GET_PRIVATE (action); + action->priv->icon = NULL; action->priv->cache = EPHY_FAVICON_CACHE @@ -288,19 +295,9 @@ ephy_favicon_action_init (EphyFaviconAction *action) static void ephy_favicon_action_finalize (GObject *object) { - EphyFaviconAction *action; - - g_return_if_fail (EPHY_IS_FAVICON_ACTION (object)); - - action = EPHY_FAVICON_ACTION (object); - - g_return_if_fail (action->priv != NULL); + EphyFaviconAction *action = EPHY_FAVICON_ACTION (object); g_object_unref (action->priv->cache); - g_free (action->priv); - - LOG ("Favicon action finalized") - G_OBJECT_CLASS (parent_class)->finalize (object); } |