[nautilus] canvas-container: remove unused use_drop_shadows property
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] canvas-container: remove unused use_drop_shadows property
- Date: Sat, 30 Aug 2014 20:30:20 +0000 (UTC)
commit f23b98f04e534c617e07b2c8fdd87e9a05d59ff7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Aug 30 13:26:43 2014 -0700
canvas-container: remove unused use_drop_shadows property
libnautilus-private/nautilus-canvas-container.c | 14 --------------
libnautilus-private/nautilus-canvas-container.h | 2 --
libnautilus-private/nautilus-canvas-private.h | 4 ----
src/nautilus-desktop-canvas-view.c | 1 -
4 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/libnautilus-private/nautilus-canvas-container.c b/libnautilus-private/nautilus-canvas-container.c
index 3294b43..eb987a5 100644
--- a/libnautilus-private/nautilus-canvas-container.c
+++ b/libnautilus-private/nautilus-canvas-container.c
@@ -3945,7 +3945,6 @@ style_updated (GtkWidget *widget)
NautilusCanvasContainer *container;
container = NAUTILUS_CANVAS_CONTAINER (widget);
- container->details->use_drop_shadows = container->details->drop_shadows_requested;
/* Don't chain up to parent, if this is a desktop container,
* because that resets the background of the window.
@@ -7483,19 +7482,6 @@ nautilus_canvas_container_set_margins (NautilusCanvasContainer *container,
schedule_redo_layout (container);
}
-void
-nautilus_canvas_container_set_use_drop_shadows (NautilusCanvasContainer *container,
- gboolean use_drop_shadows)
-{
- if (container->details->drop_shadows_requested == use_drop_shadows) {
- return;
- }
-
- container->details->drop_shadows_requested = use_drop_shadows;
- container->details->use_drop_shadows = use_drop_shadows;
- gtk_widget_queue_draw (GTK_WIDGET (container));
-}
-
/* handle theme changes */
void
diff --git a/libnautilus-private/nautilus-canvas-container.h b/libnautilus-private/nautilus-canvas-container.h
index 5e0d31f..b6cfe4d 100644
--- a/libnautilus-private/nautilus-canvas-container.h
+++ b/libnautilus-private/nautilus-canvas-container.h
@@ -313,8 +313,6 @@ void nautilus_canvas_container_set_margins (Nauti
int
right_margin,
int top_margin,
int
bottom_margin);
-void nautilus_canvas_container_set_use_drop_shadows (NautilusCanvasContainer
*container,
- gboolean
use_drop_shadows);
char* nautilus_canvas_container_get_icon_description (NautilusCanvasContainer
*container,
NautilusCanvasIconData
*data);
gboolean nautilus_canvas_container_get_allow_moves (NautilusCanvasContainer
*container);
diff --git a/libnautilus-private/nautilus-canvas-private.h b/libnautilus-private/nautilus-canvas-private.h
index 8a79120..b919529 100644
--- a/libnautilus-private/nautilus-canvas-private.h
+++ b/libnautilus-private/nautilus-canvas-private.h
@@ -237,10 +237,6 @@ struct NautilusCanvasContainerDetails {
int top_margin;
int bottom_margin;
- /* Whether we should use drop shadows for the icon labels or not */
- gboolean use_drop_shadows;
- gboolean drop_shadows_requested;
-
/* a11y items used by canvas items */
guint a11y_item_action_idle_handler;
GQueue* a11y_item_action_queue;
diff --git a/src/nautilus-desktop-canvas-view.c b/src/nautilus-desktop-canvas-view.c
index 628ea45..c6971f5 100644
--- a/src/nautilus-desktop-canvas-view.c
+++ b/src/nautilus-desktop-canvas-view.c
@@ -459,7 +459,6 @@ nautilus_desktop_canvas_view_init (NautilusDesktopCanvasView *desktop_canvas_vie
}
canvas_container = get_canvas_container (desktop_canvas_view);
- nautilus_canvas_container_set_use_drop_shadows (canvas_container, TRUE);
nautilus_canvas_view_container_set_sort_desktop (NAUTILUS_CANVAS_VIEW_CONTAINER (canvas_container),
TRUE);
/* Do a reload on the desktop if we don't have FAM, a smarter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]