Merge lp:~teemperor/switchboard-plug-default-applications/fix-1111692-dont-resize-switchboard into lp:switchboard-plug-default-applications

Proposed by Raphael Isemann
Status: Merged
Merged at revision: 49
Proposed branch: lp:~teemperor/switchboard-plug-default-applications/fix-1111692-dont-resize-switchboard
Merge into: lp:switchboard-plug-default-applications
Diff against target: 46 lines (+12/-4)
1 file modified
src/default-plug.vala (+12/-4)
To merge this branch: bzr merge lp:~teemperor/switchboard-plug-default-applications/fix-1111692-dont-resize-switchboard
Reviewer Review Type Date Requested Status
Cody Garver (community) Approve
Review via email: mp+161318@code.launchpad.net

Description of the change

Fixed the linked bug with the GUI. Also made that the Widgets don't align on the left side of the window.

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/default-plug.vala'
2--- src/default-plug.vala 2013-02-16 05:53:32 +0000
3+++ src/default-plug.vala 2013-04-28 09:24:26 +0000
4@@ -68,11 +68,15 @@
5 public DefaultPlug () {
6
7 var grid = new Gtk.Grid ();
8- grid.set_column_homogeneous (true);
9+ grid.halign = Gtk.Align.CENTER;
10+ grid.set_column_homogeneous (false);
11 grid.set_row_spacing (6);
12- grid.set_column_spacing (6);
13- //grid.margin_left = 20;
14- grid.margin_right = 70;
15+ grid.set_column_spacing (10);
16+
17+ //space between the two columns
18+ int margin_columns = 40;
19+ grid.margin_left = margin_columns;
20+ grid.margin_right = 30;
21 grid.margin_top = 64;
22
23 var wb_label = new LLabel.right (_("Web Browser:"));
24@@ -94,18 +98,22 @@
25 var mp_label = new LLabel.right (_("Music Player:"));
26 mp_chooser = new Gtk.AppChooserButton ("audio/x-vorbis+ogg");
27 mp_chooser.show_default_item = true;
28+ mp_label.margin_left = margin_columns;
29
30 var iv_label = new LLabel.right (_("Image Viewer:"));
31 iv_chooser = new Gtk.AppChooserButton ("image/jpeg");
32 iv_chooser.show_default_item = true;
33+ iv_label.margin_left = margin_columns;
34
35 var te_label = new LLabel.right (_("Text Editor:"));
36 te_chooser = new Gtk.AppChooserButton ("text/plain");
37 te_chooser.show_default_item = true;
38+ te_label.margin_left = margin_columns;
39
40 var fb_label = new LLabel.right (_("File Browser:"));
41 fb_chooser = new Gtk.AppChooserButton ("inode/directory");
42 fb_chooser.show_default_item = true;
43+ fb_label.margin_left = margin_columns;
44
45 grid.attach (wb_label, 0, 0, 1, 1);
46 grid.attach (wb_chooser, 1, 0, 1, 1);

Subscribers

People subscribed via source and target branches

to all changes: