[nautilus] slot: remove unused method
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] slot: remove unused method
- Date: Sat, 1 Sep 2012 03:04:29 +0000 (UTC)
commit 34d087390cd22e50a878be277584d84f6a849324
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Aug 31 20:56:13 2012 -0400
slot: remove unused method
This method was used to make the window panes active on focus click, but
it's not needed anymore.
src/nautilus-canvas-view.c | 15 ---------------
src/nautilus-list-view.c | 16 ----------------
src/nautilus-window-slot.c | 9 ---------
src/nautilus-window-slot.h | 1 -
4 files changed, 0 insertions(+), 41 deletions(-)
---
diff --git a/src/nautilus-canvas-view.c b/src/nautilus-canvas-view.c
index 0c41f45..0be8b63 100644
--- a/src/nautilus-canvas-view.c
+++ b/src/nautilus-canvas-view.c
@@ -2005,19 +2005,6 @@ store_layout_timestamp (NautilusCanvasContainer *container,
return TRUE;
}
-static gboolean
-focus_in_event_callback (GtkWidget *widget, GdkEventFocus *event, gpointer user_data)
-{
- NautilusWindowSlot *slot;
- NautilusCanvasView *canvas_view = NAUTILUS_CANVAS_VIEW (user_data);
-
- /* make the corresponding slot (and the window that contains it) active */
- slot = nautilus_view_get_nautilus_window_slot (NAUTILUS_VIEW (canvas_view));
- nautilus_window_slot_make_hosting_window_active (slot);
-
- return FALSE;
-}
-
static NautilusCanvasContainer *
create_canvas_container (NautilusCanvasView *canvas_view)
{
@@ -2030,8 +2017,6 @@ create_canvas_container (NautilusCanvasView *canvas_view)
gtk_widget_set_can_focus (GTK_WIDGET (canvas_container), TRUE);
- g_signal_connect_object (canvas_container, "focus_in_event",
- G_CALLBACK (focus_in_event_callback), canvas_view, 0);
g_signal_connect_object (canvas_container, "activate",
G_CALLBACK (canvas_container_activate_callback), canvas_view, 0);
g_signal_connect_object (canvas_container, "activate_alternate",
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 059e376..25fd2e5 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1344,19 +1344,6 @@ filename_cell_data_func (GtkTreeViewColumn *column,
g_free (text);
}
-static gboolean
-focus_in_event_callback (GtkWidget *widget, GdkEventFocus *event, gpointer user_data)
-{
- NautilusWindowSlot *slot;
- NautilusListView *list_view = NAUTILUS_LIST_VIEW (user_data);
-
- /* make the corresponding slot (and the window that contains it) active */
- slot = nautilus_view_get_nautilus_window_slot (NAUTILUS_VIEW (list_view));
- nautilus_window_slot_make_hosting_window_active (slot);
-
- return FALSE;
-}
-
static void
set_up_pixbuf_size (NautilusListView *view)
{
@@ -1438,9 +1425,6 @@ create_and_set_up_tree_view (NautilusListView *view)
g_signal_connect_object (view->details->tree_view, "row-activated",
G_CALLBACK (row_activated_callback), view, 0);
- g_signal_connect_object (view->details->tree_view, "focus_in_event",
- G_CALLBACK(focus_in_event_callback), view, 0);
-
view->details->model = g_object_new (NAUTILUS_TYPE_LIST_MODEL, NULL);
gtk_tree_view_set_model (view->details->tree_view, GTK_TREE_MODEL (view->details->model));
/* Need the model for the dnd drop icon "accept" change */
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index bd8bc6d..3dabac1 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -512,15 +512,6 @@ nautilus_window_slot_get_location_uri (NautilusWindowSlot *slot)
return NULL;
}
-void
-nautilus_window_slot_make_hosting_window_active (NautilusWindowSlot *slot)
-{
- g_assert (NAUTILUS_IS_WINDOW_SLOT (slot));
-
- nautilus_window_set_active_slot (nautilus_window_slot_get_window (slot),
- slot);
-}
-
NautilusWindow *
nautilus_window_slot_get_window (NautilusWindowSlot *slot)
{
diff --git a/src/nautilus-window-slot.h b/src/nautilus-window-slot.h
index e7bd64d..02c043a 100644
--- a/src/nautilus-window-slot.h
+++ b/src/nautilus-window-slot.h
@@ -173,7 +173,6 @@ void nautilus_window_slot_remove_extra_location_widgets (NautilusWindowSlot *
NautilusView * nautilus_window_slot_get_current_view (NautilusWindowSlot *slot);
char * nautilus_window_slot_get_current_uri (NautilusWindowSlot *slot);
NautilusWindow * nautilus_window_slot_get_window (NautilusWindowSlot *slot);
-void nautilus_window_slot_make_hosting_window_active (NautilusWindowSlot *slot);
void nautilus_window_slot_clear_forward_list (NautilusWindowSlot *slot);
void nautilus_window_slot_clear_back_list (NautilusWindowSlot *slot);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]