[gnome-user-share] extension: Better explanation when in Public folder
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-user-share] extension: Better explanation when in Public folder
- Date: Mon, 3 Aug 2015 16:27:51 +0000 (UTC)
commit 199bf86bcd6b1adb1b2b2725a7f8055bfac0c55e
Author: Bastien Nocera <hadess hadess net>
Date: Mon Aug 3 18:24:04 2015 +0200
extension: Better explanation when in Public folder
The info bar read:
Sharing [ Preferences ]
May be shared over the network
As it was unclear what this was referring to, switch the message to
the clearer:
"Turn on Personal File Sharing to share the contents of this folder over
the network."
And change the "Preferences" button to read "Sharing Settings".
https://bugzilla.gnome.org/show_bug.cgi?id=740375
src/nautilus-share-bar.c | 10 +++-------
src/share-extension.c | 2 +-
2 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-share-bar.c b/src/nautilus-share-bar.c
index 4dffb20..7536c3d 100644
--- a/src/nautilus-share-bar.c
+++ b/src/nautilus-share-bar.c
@@ -84,7 +84,6 @@ nautilus_share_bar_init (NautilusShareBar *bar)
GtkWidget *action_area;
GtkWidget *label;
GtkWidget *vbox;
- GtkWidget *button;
PangoAttrList *attrs;
bar->priv = NAUTILUS_SHARE_BAR_GET_PRIVATE (bar);
@@ -112,12 +111,9 @@ nautilus_share_bar_init (NautilusShareBar *bar)
gtk_widget_show (bar->priv->label);
gtk_container_add (GTK_CONTAINER (vbox), bar->priv->label);
- button = gtk_info_bar_add_button (GTK_INFO_BAR (bar),
- _("Preferences"),
- NAUTILUS_SHARE_BAR_RESPONSE_PREFERENCES);
-
- /* translators: This is the tooltip for the "Sharing" panel in the Settings */
- gtk_widget_set_tooltip_text (button, _("Sharing Settings"));
+ gtk_info_bar_add_button (GTK_INFO_BAR (bar),
+ _("Sharing Settings"),
+ NAUTILUS_SHARE_BAR_RESPONSE_PREFERENCES);
gtk_widget_show_all (vbox);
}
diff --git a/src/share-extension.c b/src/share-extension.c
index c4b5f08..8767f8c 100644
--- a/src/share-extension.c
+++ b/src/share-extension.c
@@ -115,7 +115,7 @@ nautilus_user_share_get_location_widget (NautilusLocationWidgetProvider *iface,
if (enable == FALSE)
return NULL;
- bar = nautilus_share_bar_new (_("May be shared over the network"));
+ bar = nautilus_share_bar_new (_("Turn on Personal File Sharing to share the contents of this folder
over the network."));
g_signal_connect (bar, "response",
G_CALLBACK (bar_response_cb), window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]