Merge lp:~optimisme/pantheon-files/1177087 into lp:~elementary-apps/pantheon-files/trunk

Proposed by Albert
Status: Merged
Merged at revision: 1180
Proposed branch: lp:~optimisme/pantheon-files/1177087
Merge into: lp:~elementary-apps/pantheon-files/trunk
Diff against target: 46 lines (+6/-2)
2 files modified
libcore/gof-file.c (+3/-2)
src/marlin-connect-server-dialog.c (+3/-0)
To merge this branch: bzr merge lp:~optimisme/pantheon-files/1177087
Reviewer Review Type Date Requested Status
Cody Garver (community) Needs Fixing
Review via email: mp+163426@code.launchpad.net

Description of the change

Added AFP protocol to server connection list.

Only "src/marlin-connect-server-dialog.c" modified.

To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) wrote :

I need to boot up my Mac soon and test this out.

Revision history for this message
Albert (optimisme) wrote :

> I need to boot up my Mac soon and test this out.

Hi Cody,

It works but it shows the "folders" as "unknown files", I will add a new bug as soon as this source is merged. Then,, I will try to fix it ...

Also, I don't know how to add text to the translations list, is as easy as adding the _("AFP") entry?

Thanks,

Albert

Revision history for this message
Albert (optimisme) wrote :

Hi Cody, can you test this source? When merged I will continue improving this functionality ...

Revision history for this message
Cody Garver (codygarver) wrote :

That's the right way to add translations.

Fix the Unknown Files bug and it can probably be merged. We can't have more in-progress code in trunk.

I suspect the Uknown Files bug is why this was not already present.

review: Needs Fixing
lp:~optimisme/pantheon-files/1177087 updated
1173. By Albert

Fixed network and remote folder icons for AFP protocol

1174. By Albert

fixed source style

1175. By Albert

fixed source style

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'icons/thumbnail_frame.png'
0Binary files icons/thumbnail_frame.png 2010-11-13 23:10:54 +0000 and icons/thumbnail_frame.png 2013-05-18 09:26:24 +0000 differ0Binary files icons/thumbnail_frame.png 2010-11-13 23:10:54 +0000 and icons/thumbnail_frame.png 2013-05-18 09:26:24 +0000 differ
=== modified file 'libcore/gof-file.c'
--- libcore/gof-file.c 2013-05-18 08:57:15 +0000
+++ libcore/gof-file.c 2013-05-18 09:26:24 +0000
@@ -410,8 +410,10 @@
410 file->formated_modified = gof_file_get_formated_time (file, G_FILE_ATTRIBUTE_TIME_MODIFIED);410 file->formated_modified = gof_file_get_formated_time (file, G_FILE_ATTRIBUTE_TIME_MODIFIED);
411411
412 /* icon */412 /* icon */
413 if (file->is_directory && g_file_is_native (file->location)) {413 if (file->is_directory) {
414 gof_file_get_folder_icon_from_uri_or_path (file);414 gof_file_get_folder_icon_from_uri_or_path (file);
415 } else if (g_file_info_get_file_type(file->info) == G_FILE_TYPE_MOUNTABLE) {
416 file->icon = g_themed_icon_new_with_default_fallbacks ("folder-remote-symbolic");
415 } else {417 } else {
416 const gchar *ftype = gof_file_get_ftype (file);418 const gchar *ftype = gof_file_get_ftype (file);
417 if (ftype != NULL && file->icon == NULL)419 if (ftype != NULL && file->icon == NULL)
@@ -2322,7 +2324,6 @@
2322 g_return_val_if_fail (file->info != NULL, NULL);2324 g_return_val_if_fail (file->info != NULL, NULL);
23232325
2324 const char *ftype = NULL;2326 const char *ftype = NULL;
2325
2326 if (g_file_info_has_attribute (file->info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE))2327 if (g_file_info_has_attribute (file->info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE))
2327 return g_file_info_get_attribute_string (file->info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);2328 return g_file_info_get_attribute_string (file->info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
2328 if (g_file_info_has_attribute (file->info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE))2329 if (g_file_info_has_attribute (file->info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE))
23292330
=== modified file 'src/marlin-connect-server-dialog.c'
--- src/marlin-connect-server-dialog.c 2012-02-05 16:29:37 +0000
+++ src/marlin-connect-server-dialog.c 2013-05-18 09:26:24 +0000
@@ -110,6 +110,7 @@
110 { "sftp", SHOW_PORT | SHOW_USER, 22 },110 { "sftp", SHOW_PORT | SHOW_USER, 22 },
111 { "ftp", SHOW_PORT | SHOW_USER, 21 },111 { "ftp", SHOW_PORT | SHOW_USER, 21 },
112 { "ftp", DEFAULT_METHOD | IS_ANONYMOUS | SHOW_PORT, 21 },112 { "ftp", DEFAULT_METHOD | IS_ANONYMOUS | SHOW_PORT, 21 },
113 { "afp", SHOW_PORT | SHOW_USER, 548 },
113 { "smb", SHOW_SHARE | SHOW_USER | SHOW_DOMAIN, 0 },114 { "smb", SHOW_SHARE | SHOW_USER | SHOW_DOMAIN, 0 },
114 { "dav", SHOW_PORT | SHOW_USER, 80 },115 { "dav", SHOW_PORT | SHOW_USER, 80 },
115 /* FIXME: hrm, shouldn't it work? */116 /* FIXME: hrm, shouldn't it work? */
@@ -128,6 +129,8 @@
128 } else {129 } else {
129 return _("FTP (with login)");130 return _("FTP (with login)");
130 }131 }
132 } else if (strcmp (meth->scheme, "afp") == 0) {
133 return _("AFP (Apple Filing Protocol)");
131 } else if (strcmp (meth->scheme, "smb") == 0) {134 } else if (strcmp (meth->scheme, "smb") == 0) {
132 return _("Windows share");135 return _("Windows share");
133 } else if (strcmp (meth->scheme, "dav") == 0) {136 } else if (strcmp (meth->scheme, "dav") == 0) {

Subscribers

People subscribed via source and target branches

to all changes: