evolution r36455 - trunk/plugins/publish-calendar



Author: pwithnall
Date: Fri Sep 26 06:41:19 2008
New Revision: 36455
URL: http://svn.gnome.org/viewvc/evolution?rev=36455&view=rev

Log:
2008-09-26  Philip Withnall  <philip tecnocode co uk>

	** Fix for bug #553461 and bug #553389

	* publish-calendar.c (url_remove_clicked):
	* publish-calendar.glade:
	* url-editor-dialog.c (create_uri), (check_input),
	(publish_service_changed), (set_from_uri):
	* url-editor-dialog.h: Rename the "SSH" option to "Secure FTP 
(SSH)"
	and update the code accordingly. Also, change a related string 
to use
	better terminology.



Modified:
   trunk/plugins/publish-calendar/ChangeLog
   trunk/plugins/publish-calendar/publish-calendar.c
   trunk/plugins/publish-calendar/publish-calendar.glade
   trunk/plugins/publish-calendar/url-editor-dialog.c
   trunk/plugins/publish-calendar/url-editor-dialog.h

Modified: trunk/plugins/publish-calendar/publish-calendar.c
==============================================================================
--- trunk/plugins/publish-calendar/publish-calendar.c	(original)
+++ trunk/plugins/publish-calendar/publish-calendar.c	Fri Sep 26 06:41:19 2008
@@ -592,7 +592,7 @@
 
 	confirm = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 			                  GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE,
-					  _("Are you sure you want to remove this URL?"));
+					  _("Are you sure you want to remove this location?"));
 	gtk_dialog_add_button (GTK_DIALOG (confirm), GTK_STOCK_CANCEL, GTK_RESPONSE_NO);
 	gtk_dialog_add_button (GTK_DIALOG (confirm), GTK_STOCK_REMOVE, GTK_RESPONSE_YES);
 	gtk_dialog_set_default_response (GTK_DIALOG (confirm), GTK_RESPONSE_CANCEL);

Modified: trunk/plugins/publish-calendar/publish-calendar.glade
==============================================================================
--- trunk/plugins/publish-calendar/publish-calendar.glade	(original)
+++ trunk/plugins/publish-calendar/publish-calendar.glade	Fri Sep 26 06:41:19 2008
@@ -712,7 +712,7 @@
 			  <child>
 			    <widget class="GtkComboBox" id="publish_service">
 			      <property name="visible">True</property>
-			      <property name="items" translatable="yes">SSH
+			      <property name="items" translatable="yes">Secure FTP (SSH)
 Public FTP
 FTP (with login)
 Windows share

Modified: trunk/plugins/publish-calendar/url-editor-dialog.c
==============================================================================
--- trunk/plugins/publish-calendar/url-editor-dialog.c	(original)
+++ trunk/plugins/publish-calendar/url-editor-dialog.c	Fri Sep 26 06:41:19 2008
@@ -54,7 +54,7 @@
 			method = "smb";
 			break;
 
-		case TYPE_SSH:
+		case TYPE_SFTP:
 			method = "sftp";
 			break;
 
@@ -110,7 +110,7 @@
 	/* This should probably be more complex, since ' ' isn't a valid server name */
 	switch (uri->service_type) {
 	case TYPE_SMB:
-	case TYPE_SSH:
+	case TYPE_SFTP:
 	case TYPE_FTP:
 	case TYPE_DAV:
 	case TYPE_DAVS:
@@ -160,7 +160,7 @@
 		gtk_widget_show (dialog->password_hbox);
 		gtk_widget_show (dialog->remember_pw);
 		break;
-	case TYPE_SSH:
+	case TYPE_SFTP:
 	case TYPE_FTP:
 	case TYPE_DAV:
 	case TYPE_DAVS:
@@ -275,7 +275,7 @@
 	if (strcmp ((const char *)method, "smb") == 0)
 		uri->service_type = TYPE_SMB;
 	else if (strcmp ((const char *)method, "sftp") == 0)
-		uri->service_type = TYPE_SSH;
+		uri->service_type = TYPE_SFTP;
 	else if (strcmp ((const char *)method, "ftp") == 0)
 		/* we set TYPE_FTP here for now. if we don't find a
 		 * username later, we'll change it to TYPE_ANON_FTP */

Modified: trunk/plugins/publish-calendar/url-editor-dialog.h
==============================================================================
--- trunk/plugins/publish-calendar/url-editor-dialog.h	(original)
+++ trunk/plugins/publish-calendar/url-editor-dialog.h	Fri Sep 26 06:41:19 2008
@@ -44,7 +44,7 @@
 };
 
 enum {
-	TYPE_SSH,
+	TYPE_SFTP,
 	TYPE_ANON_FTP,
 	TYPE_FTP,
 	TYPE_SMB,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]