summaryrefslogtreecommitdiff
path: root/src/share-extension.c
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-29 07:36:25 +0200
committerJasmine Hassan <[email protected]>2012-10-29 15:23:13 +0200
commit5c7c3b4bf19b2c53cb20519999ab23c6ece2ac3d (patch)
treec607aa5244f6113e81f81e21013e48aae20cba6e /src/share-extension.c
parent9acddbc84bec236ca91fa210b6b2164a60895615 (diff)
downloadmate-user-share-5c7c3b4bf19b2c53cb20519999ab23c6ece2ac3d.tar.bz2
mate-user-share-5c7c3b4bf19b2c53cb20519999ab23c6ece2ac3d.tar.xz
[share-extension] remove code that does nothing
We keep track of widgets, but don't do anything with them, so just remove this code. https://bugzilla.gnome.org/show_bug.cgi?id=676515 http://git.gnome.org/browse/gnome-user-share/commit/?id=f4349765c814b51372702feb47ba45100287fd2b
Diffstat (limited to 'src/share-extension.c')
-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);
}