aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-favicon-action.c4
-rw-r--r--src/ephy-location-action.c5
-rw-r--r--src/ephy-spinner-action.c4
3 files changed, 6 insertions, 7 deletions
diff --git a/src/ephy-favicon-action.c b/src/ephy-favicon-action.c
index 87fddc8db..88103ac09 100644
--- a/src/ephy-favicon-action.c
+++ b/src/ephy-favicon-action.c
@@ -79,7 +79,7 @@ create_tool_item (EggAction *action)
GtkWidget *ebox;
GtkWidget *item;
- item = (* EGG_ACTION_CLASS (parent_class)->create_tool_item) (action);
+ item = GTK_WIDGET (egg_tool_item_new ());
ebox = gtk_event_box_new ();
image = gtk_image_new ();
@@ -226,7 +226,7 @@ ephy_favicon_action_class_init (EphyFaviconActionClass *class)
parent_class = g_type_class_peek_parent (class);
action_class = EGG_ACTION_CLASS (class);
- action_class->toolbar_item_type = EGG_TYPE_TOOL_ITEM;
+ action_class->toolbar_item_type = GTK_TYPE_IMAGE;
action_class->create_tool_item = create_tool_item;
action_class->connect_proxy = connect_proxy;
diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c
index 07f7e6c2b..5030c7b45 100644
--- a/src/ephy-location-action.c
+++ b/src/ephy-location-action.c
@@ -70,8 +70,7 @@ create_tool_item (EggAction *action)
LOG ("Create location toolitem")
- item = (* EGG_ACTION_CLASS (parent_class)->create_tool_item) (action);
-
+ item = GTK_WIDGET (egg_tool_item_new ());//(* EGG_ACTION_CLASS (parent_class)->create_tool_item) (action);
location = ephy_location_entry_new ();
gtk_container_add (GTK_CONTAINER (item), location);
egg_tool_item_set_expandable (EGG_TOOL_ITEM (item), TRUE);
@@ -141,7 +140,7 @@ ephy_location_action_class_init (EphyLocationActionClass *class)
parent_class = g_type_class_peek_parent (class);
action_class = EGG_ACTION_CLASS (class);
- action_class->toolbar_item_type = EGG_TYPE_TOOL_ITEM;
+ action_class->toolbar_item_type = EPHY_TYPE_LOCATION_ENTRY;
action_class->create_tool_item = create_tool_item;
action_class->connect_proxy = connect_proxy;
diff --git a/src/ephy-spinner-action.c b/src/ephy-spinner-action.c
index 3e990f49b..295e88545 100644
--- a/src/ephy-spinner-action.c
+++ b/src/ephy-spinner-action.c
@@ -88,7 +88,7 @@ create_tool_item (EggAction *action)
GtkWidget *spinner;
GtkWidget *button;
- item = (* EGG_ACTION_CLASS (parent_class)->create_tool_item) (action);
+ item = GTK_WIDGET (egg_tool_item_new ());
button = gtk_button_new ();
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
@@ -160,7 +160,7 @@ ephy_spinner_action_class_init (EphySpinnerActionClass *class)
parent_class = g_type_class_peek_parent (class);
action_class = EGG_ACTION_CLASS (class);
- action_class->toolbar_item_type = EGG_TYPE_TOOL_ITEM;
+ action_class->toolbar_item_type = EPHY_SPINNER_TYPE;
action_class->create_tool_item = create_tool_item;
action_class->connect_proxy = connect_proxy;