From 97f88e3bb6d66dabe61c8ddaffedb940d5281aeb Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 31 Jan 2006 20:24:39 +0000 Subject: Fix link action group creating to really use the given name! 2006-01-31 Christian Persch * src/ephy-link-action.c: (ephy_link_action_group_new): * src/ephy-link-action.h: Fix link action group creating to really use the given name! --- ChangeLog | 7 +++++++ src/ephy-link-action.c | 9 +++++---- src/ephy-link-action.h | 4 ++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6d31f4873..1ad59e1ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-01-31 Christian Persch + + * src/ephy-link-action.c: (ephy_link_action_group_new): + * src/ephy-link-action.h: + + Fix link action group creating to really use the given name! + 2006-01-31 Christian Persch * data/epiphany-service.xml: diff --git a/src/ephy-link-action.c b/src/ephy-link-action.c index f5be71675..3a3543221 100644 --- a/src/ephy-link-action.c +++ b/src/ephy-link-action.c @@ -32,7 +32,7 @@ #include #include -static GObjectClass *parent_class = NULL; +static GObjectClass *parent_class; static gboolean proxy_button_press_event_cb (GtkButton *button, @@ -236,8 +236,9 @@ ephy_link_action_group_get_type (void) } EphyLinkActionGroup * -ephy_link_action_group_new (char * name) +ephy_link_action_group_new (const char * name) { - return EPHY_LINK_ACTION_GROUP (g_object_new (EPHY_TYPE_LINK_ACTION_GROUP, - "name", "BookmarkActions", NULL)); + return g_object_new (EPHY_TYPE_LINK_ACTION_GROUP, + "name", name, + NULL); } diff --git a/src/ephy-link-action.h b/src/ephy-link-action.h index 7dbc5794c..bac32dd45 100644 --- a/src/ephy-link-action.h +++ b/src/ephy-link-action.h @@ -66,11 +66,11 @@ struct _EphyLinkActionGroupClass GtkActionGroupClass parent_class; }; -GType ephy_link_action_get_type (void); +GType ephy_link_action_get_type (void); GType ephy_link_action_group_get_type (void); -EphyLinkActionGroup * ephy_link_action_group_new (char *name); +EphyLinkActionGroup * ephy_link_action_group_new (const char *name); G_END_DECLS -- cgit