summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/share-extension.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/share-extension.c b/src/share-extension.c
index 01a574a..8f08392 100644
--- a/src/share-extension.c
+++ b/src/share-extension.c
@@ -54,7 +54,6 @@ typedef struct
struct _CajaUserSharePrivate
{
- GSList *widget_list;
};
static GType caja_user_share_get_type (void);
@@ -113,24 +112,6 @@ bar_response_cb (CajaShareBar *bar,
}
}
-static void
-destroyed_callback (GtkWidget *widget,
- CajaUserShare *share)
-{
- share->priv->widget_list = g_slist_remove (share->priv->widget_list, widget);
-}
-
-static void
-add_widget (CajaUserShare *share,
- GtkWidget *widget)
-{
- share->priv->widget_list = g_slist_prepend (share->priv->widget_list, widget);
-
- g_signal_connect (widget, "destroy",
- G_CALLBACK (destroyed_callback),
- share);
-}
-
static GtkWidget *
caja_user_share_get_location_widget (CajaLocationWidgetProvider *iface,
const char *uri,
@@ -138,7 +119,6 @@ caja_user_share_get_location_widget (CajaLocationWidgetProvider *iface,
{
GFile *file;
GtkWidget *bar;
- CajaUserShare *share;
guint i;
gboolean enable = FALSE;
GFile *home;
@@ -170,8 +150,6 @@ caja_user_share_get_location_widget (CajaLocationWidgetProvider *iface,
if (enable == FALSE)
return NULL;
- share = CAJA_USER_SHARE (iface);
-
if (is_dir[0] != FALSE && is_dir[1] != FALSE) {
bar = caja_share_bar_new (_("May be used to share or receive files"));
} else if (is_dir[0] != FALSE) {
@@ -180,8 +158,6 @@ caja_user_share_get_location_widget (CajaLocationWidgetProvider *iface,
bar = caja_share_bar_new (_("May be used to receive files over Bluetooth"));
}
- add_widget (share, caja_share_bar_get_button (CAJA_SHARE_BAR (bar)));
-
g_signal_connect (bar, "response",
G_CALLBACK (bar_response_cb),
window);
@@ -217,10 +193,6 @@ caja_user_share_finalize (GObject *object)
g_return_if_fail (share->priv != NULL);
- if (share->priv->widget_list != NULL) {
- g_slist_free (share->priv->widget_list);
- }
-
G_OBJECT_CLASS (parent_class)->finalize (object);
}