Merge lp:~evfool/pantheon-files/lp1400735-hide-smb-port into lp:~elementary-apps/pantheon-files/trunk

Proposed by Robert Roth
Status: Rejected
Rejected by: Cody Garver
Proposed branch: lp:~evfool/pantheon-files/lp1400735-hide-smb-port
Merge into: lp:~elementary-apps/pantheon-files/trunk
Diff against target: 43 lines (+9/-2)
1 file modified
src/marlin-connect-server-dialog.c (+9/-2)
To merge this branch: bzr merge lp:~evfool/pantheon-files/lp1400735-hide-smb-port
Reviewer Review Type Date Requested Status
Jeremy Wootten Disapprove
elementary UX appearance Pending
Review via email: mp+245430@code.launchpad.net

Description of the change

Hide the port label and entry on the connect to server dialog in case they are not needed for the given protocol (lp:1400735).

To post a comment you must log in.
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Tested after merging current trunk and fix-network-browsing branch.

The port choice widget is hidden when "Windows share" is chosen, but this results in a significant change in the width of the window, which is not ideal. I think the design team would need to comment on that.

I think it would be better if the window width stayed the same.

In my opinion the port choice widget should appear below the connection type now as its appearance depends on the connection type. By the same logic the folder field, which is fixed, should appear above it, together with server. Again, design team input is needed on this.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

This branch conflicts with lp:~alek900/pantheon-files/server-dialog-vala, which converts the server dialog code into Vala. It would be better to wait until this branch is merged before fixing this and other server dialog bugs.

review: Disapprove

Unmerged revisions

1702. By Robert Roth

Do not show disabled port entry for samba (lp:1400735)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/marlin-connect-server-dialog.c'
2--- src/marlin-connect-server-dialog.c 2013-09-12 01:59:24 +0000
3+++ src/marlin-connect-server-dialog.c 2014-12-29 17:38:44 +0000
4@@ -37,6 +37,7 @@
5 GtkWidget *primary_grid;
6 GtkWidget *user_details;
7 GtkWidget *port_spinbutton;
8+ GtkWidget *port_label;
9
10 GtkWidget *info_bar;
11 GtkWidget *info_bar_content;
12@@ -812,8 +813,13 @@
13 (meth->flags & SHOW_SHARE) != 0,
14 NULL);
15
16+ g_object_set (dialog->details->port_label,
17+ "visible",
18+ (meth->flags & SHOW_PORT) != 0,
19+ NULL);
20+
21 g_object_set (dialog->details->port_spinbutton,
22- "sensitive",
23+ "visible",
24 (meth->flags & SHOW_PORT) != 0,
25 "value", (gdouble) meth->default_port,
26 NULL);
27@@ -939,7 +945,7 @@
28
29 dialog->details->server_entry = gtk_entry_new ();
30 gtk_entry_set_activates_default (GTK_ENTRY (dialog->details->server_entry), TRUE);
31- gtk_box_pack_start (GTK_BOX (hbox), dialog->details->server_entry, FALSE, FALSE, 0);
32+ gtk_box_pack_start (GTK_BOX (hbox), dialog->details->server_entry, TRUE, TRUE, 0);
33 gtk_label_set_mnemonic_widget (GTK_LABEL (label), dialog->details->server_entry);
34 gtk_widget_show (dialog->details->server_entry);
35
36@@ -948,6 +954,7 @@
37 gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
38 gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
39 gtk_widget_show (label);
40+ dialog->details->port_label = label;
41
42 dialog->details->port_spinbutton =
43 gtk_spin_button_new_with_range (0.0, 65535.0, 1.0);

Subscribers

People subscribed via source and target branches

to all changes: