From b4ccfc8ea4cf00327a44cb814997d8ede9cd1706 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 27 Jan 2003 20:05:34 +0000 Subject: Implement dragging from the editor. It's stilly buggy but I didnt expect 2003-01-27 Marco Pesenti Gritti * configure.in: * data/ui/epiphany-toolbar.xml.in: * lib/widgets/ephy-editable-toolbar.c: (copy_toolbars), (is_action_in_toolbars), (is_separator), (find_toolbar_from_widget), (add_action_to_list), (parse_item_list), (toolbar_list_to_xml), (toolbar_list_to_string), (drag_data_received_cb), (drag_motion_cb), (drag_drop_cb), (setup_toolbar_drag), (do_merge), (ephy_editable_toolbar_set_merge), (ephy_editable_toolbar_init), (ephy_editable_toolbar_finalize), (drag_data_get_cb), (build_to_drag_actions_list), (setup_editor), (set_all_actions_sensitive), (ephy_editable_toolbar_edit): * src/ephy-favicon-action.c: (create_tool_item), (ephy_favicon_action_class_init): * src/ephy-location-action.c: (create_tool_item), (ephy_location_action_class_init): * src/ephy-spinner-action.c: (create_tool_item), (ephy_spinner_action_class_init): Implement dragging from the editor. It's stilly buggy but I didnt expect to get that working so soon :) --- src/ephy-location-action.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ephy-location-action.c') 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; -- cgit v1.2.3