aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-location-entry.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2003-09-02 07:20:17 +0800
committerChristian Persch <chpe@src.gnome.org>2003-09-02 07:20:17 +0800
commit73a95385f4034998cc78199dc8bb9ee22d90d6aa (patch)
tree499d78ab52e8937f672e3659105dda083a34c988 /lib/widgets/ephy-location-entry.c
parent3375c1878c4c0ebf4f5067d128024ea484208f62 (diff)
downloadgsoc2013-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 'lib/widgets/ephy-location-entry.c')
-rw-r--r--lib/widgets/ephy-location-entry.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 1d9d2172f..3c1c6ce52 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -15,6 +15,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-location-entry.h"
@@ -37,6 +39,9 @@
/**
* Private data
*/
+
+#define EPHY_LOCATION_ENTRY_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_LOCATION_ENTRY, EphyLocationEntryPrivate))
+
struct _EphyLocationEntryPrivate {
GtkWidget *combo;
GtkWidget *entry;
@@ -198,6 +203,8 @@ ephy_location_entry_class_init (EphyLocationEntryClass *klass)
G_TYPE_NONE,
0,
G_TYPE_NONE);
+
+ g_type_class_add_private (object_class, sizeof (EphyLocationEntryPrivate));
}
static gboolean
@@ -215,8 +222,9 @@ ephy_location_entry_init (EphyLocationEntry *w)
LOG ("EphyLocationEntry initialising %p", w)
- p = g_new0 (EphyLocationEntryPrivate, 1);
+ p = EPHY_LOCATION_ENTRY_GET_PRIVATE (w);
w->priv = p;
+
p->last_action_target = NULL;
p->before_completion = NULL;
p->user_changed = TRUE;
@@ -255,7 +263,6 @@ ephy_location_entry_finalize_impl (GObject *o)
g_free (p->before_completion);
g_free (p->autocompletion_key);
- g_free (p);
G_OBJECT_CLASS (parent_class)->finalize (o);
}