Merge lp:~alekasethm-deactivatedaccount/slingshot/fix-873587 into lp:~elementary-pantheon/slingshot/trunk

Proposed by Paulo Galardi
Status: Rejected
Rejected by: Victor Martinez
Proposed branch: lp:~alekasethm-deactivatedaccount/slingshot/fix-873587
Merge into: lp:~elementary-pantheon/slingshot/trunk
Diff against target: 205 lines (+28/-28)
4 files modified
src/SlingshotView.vala (+15/-15)
src/Widgets/AppEntry.vala (+1/-1)
src/Widgets/CategoryView.vala (+11/-11)
src/Widgets/Grid.vala (+1/-1)
To merge this branch: bzr merge lp:~alekasethm-deactivatedaccount/slingshot/fix-873587
Reviewer Review Type Date Requested Status
Victor Martinez (community) Disapprove
Review via email: mp+94689@code.launchpad.net
To post a comment you must log in.
136. By Paulo Galardi

changed the paddings accordingly to fix the bug, and fixed the grid to match the changes

Revision history for this message
Victor Martinez (victored) wrote :

Paulo, although this branch has some nice spacing improvements, it does not fix the bug [lp:873587].

review: Needs Fixing
Revision history for this message
Victor Martinez (victored) :
review: Disapprove

Unmerged revisions

136. By Paulo Galardi

changed the paddings accordingly to fix the bug, and fixed the grid to match the changes

135. By Paulo Galardi

changed the paddings accordingly to fix the bug

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/SlingshotView.vala'
2--- src/SlingshotView.vala 2012-01-21 16:06:26 +0000
3+++ src/SlingshotView.vala 2012-02-26 20:43:17 +0000
4@@ -76,7 +76,7 @@
5
6 public int view_height {
7 get {
8- return (int) (rows*130 + rows*grid_view.row_spacing + 35);
9+ return (int) (rows*140 + rows*grid_view.row_spacing + 35);
10 }
11 }
12
13@@ -90,7 +90,7 @@
14
15 // Have the window in the right place
16 read_settings (true);
17- height_request = default_rows * 145 + 180;
18+ height_request = default_rows * 155 + 180;
19
20 Slingshot.icon_theme = IconTheme.get_default ();
21
22@@ -132,7 +132,7 @@
23 center = new HBox (false, 0);
24 // Create the layout which works like view_manager
25 view_manager = new Layout (null, null);
26- view_manager.set_size_request (default_columns*130, default_rows*145);
27+ view_manager.set_size_request (default_columns*140, default_rows*135);
28 center.pack_end (view_manager, true, true, 0);
29
30 // Create the "NORMAL_VIEW"
31@@ -144,11 +144,11 @@
32 foreach (ArrayList<App> app_list in apps.values) {
33 search_view.add_apps (app_list);
34 }
35- view_manager.put (search_view, -columns*130, 0);
36+ view_manager.put (search_view, -columns*140, 0);
37
38 // Create the "CATEGORY_VIEW"
39 category_view = new CategoryView (this);
40- view_manager.put (category_view, -columns*130, 0);
41+ view_manager.put (category_view, -columns*140, 0);
42
43 // Create the page switcher
44 page_switcher = new Switcher ();
45@@ -480,10 +480,10 @@
46
47 if (current_position < 0) {
48 int count = 0;
49- int val = columns*130*step / 10;
50+ int val = columns*140*step / 10;
51 Timeout.add (20 / (2*step*step), () => {
52
53- if (count >= columns*130*step) {
54+ if (count >= columns*140*step) {
55 count = 0;
56 return false;
57 }
58@@ -505,10 +505,10 @@
59
60 if ((- current_position) < (grid_view.n_columns*130)) {
61 int count = 0;
62- int val = columns*130*step / 10;
63+ int val = columns*140*step / 10;
64 Timeout.add (20 / (2*step*step), () => {
65
66- if (count >= columns*130*step) {
67+ if (count >= columns*140*step) {
68 count = 0;
69 return false;
70 }
71@@ -553,8 +553,8 @@
72 view_selector.show_all ();
73 page_switcher.show_all ();
74 category_view.show_page_switcher (false);
75- view_manager.move (search_view, -130*columns, 0);
76- view_manager.move (category_view, 130*columns, 0);
77+ view_manager.move (search_view, -140*columns, 0);
78+ view_manager.move (category_view, 140*columns, 0);
79 view_manager.move (grid_view, current_position, 0);
80 return;
81
82@@ -563,16 +563,16 @@
83 view_selector.show_all ();
84 page_switcher.hide ();
85 category_view.show_page_switcher (true);
86- view_manager.move (grid_view, columns*130, 0);
87- view_manager.move (search_view, -columns*130, 0);
88+ view_manager.move (grid_view, columns*140, 0);
89+ view_manager.move (search_view, -columns*140, 0);
90 view_manager.move (category_view, 0, 0);
91 return;
92
93 case Modality.SEARCH_VIEW:
94 view_selector.hide ();
95 bottom.hide (); // Hide the switcher
96- view_manager.move (grid_view, columns*130, 0); // Move the grid_view away
97- view_manager.move (category_view, columns*130, 0);
98+ view_manager.move (grid_view, columns*140, 0); // Move the grid_view away
99+ view_manager.move (category_view, columns*140, 0);
100 view_manager.move (search_view, 0, 0); // Show the searchview
101 return;
102
103
104=== modified file 'src/Widgets/AppEntry.vala'
105--- src/Widgets/AppEntry.vala 2012-02-25 13:09:13 +0000
106+++ src/Widgets/AppEntry.vala 2012-02-26 20:43:17 +0000
107@@ -46,7 +46,7 @@
108
109 app_paintable = true;
110 set_visual (get_screen ().get_rgba_visual());
111- set_size_request (130, 130);
112+ set_size_request (140, 140);
113 desktop_id = app.desktop_id;
114 desktop_path = app.desktop_path;
115
116
117=== modified file 'src/Widgets/CategoryView.vala'
118--- src/Widgets/CategoryView.vala 2011-11-27 16:25:34 +0000
119+++ src/Widgets/CategoryView.vala 2012-02-26 20:43:17 +0000
120@@ -51,7 +51,7 @@
121
122 category_switcher.selected = 0;
123
124- set_size_request (view.columns*130, view.view_height);
125+ set_size_request (view.columns*140, view.view_height);
126
127 }
128
129@@ -78,7 +78,7 @@
130
131 app_view = new Widgets.Grid (view.rows, view.columns - 1);
132 layout.put (app_view, 0, 0);
133- layout.put (empty_cat_label, view.columns*130, view.rows * 130 / 2);
134+ layout.put (empty_cat_label, view.columns*140, view.rows * 130 / 2);
135
136 // Create the page switcher
137 switcher = new Switcher ();
138@@ -177,21 +177,21 @@
139 if (category == MOST_USED_APPS) {
140
141 var apps = view.app_system.get_apps_by_popularity ();
142- layout.move (empty_cat_label, view.columns*130, view.rows*130 / 2);
143+ layout.move (empty_cat_label, view.columns*140, view.rows*130 / 2);
144 for (int i = 0; i < 12; i++)
145 add_app (apps.nth_data (i));
146
147 } else if (category == NEW_FILTER) {
148
149 // This needs to be implemented
150- layout.move (empty_cat_label, (view.columns - 2)*130/2, view.rows*130 / 2);
151+ layout.move (empty_cat_label, (view.columns - 2)*140/2, view.rows*130 / 2);
152
153 } else {
154
155 if (view.apps[category].size == 0) {
156- layout.move (empty_cat_label, (view.columns - 2)*130/2, view.rows*130 / 2);
157+ layout.move (empty_cat_label, (view.columns - 2)*140/2, view.rows*130 / 2);
158 } else {
159- layout.move (empty_cat_label, view.columns*130, view.rows*130 / 2);
160+ layout.move (empty_cat_label, view.columns*140, view.rows*130 / 2);
161 foreach (App app in view.apps[category])
162 add_app (app);
163 }
164@@ -210,10 +210,10 @@
165
166 if (current_position < 0) {
167 int count = 0;
168- int val = columns*130*step / 10;
169+ int val = columns*140*step / 10;
170 Timeout.add (20 / (step*step*2), () => {
171
172- if (count >= columns*130*step) {
173+ if (count >= columns*140*step) {
174 count = 0;
175 return false;
176 }
177@@ -237,12 +237,12 @@
178 int columns = app_view.get_page_columns ();
179 int pages = app_view.get_n_pages ();
180
181- if ((- current_position) < (columns*(pages - 1)*130)) {
182+ if ((- current_position) < (columns*(pages - 1)*140)) {
183 int count = 0;
184- int val = columns*130*step / 10;
185+ int val = columns*140*step / 10;
186 Timeout.add(20 / (2*step*step), () => {
187
188- if (count >= columns*130*step) {
189+ if (count >= columns*140*step) {
190 count = 0;
191 return false;
192 }
193
194=== modified file 'src/Widgets/Grid.vala'
195--- src/Widgets/Grid.vala 2011-10-10 14:10:37 +0000
196+++ src/Widgets/Grid.vala 2012-02-26 20:43:17 +0000
197@@ -40,7 +40,7 @@
198 this.homogeneous = true;
199
200 row_spacing = 20;
201- column_spacing = 0;
202+ column_spacing = -10;
203
204 page.rows = rows;
205 page.columns = columns;

Subscribers

People subscribed via source and target branches