Merge lp:~tintou/slingshot/fix_rtl into lp:~elementary-pantheon/slingshot/trunk

Proposed by Corentin Noël
Status: Merged
Approved by: Corentin Noël
Approved revision: 464
Merged at revision: 462
Proposed branch: lp:~tintou/slingshot/fix_rtl
Merge into: lp:~elementary-pantheon/slingshot/trunk
Diff against target: 33 lines (+9/-1)
1 file modified
src/SlingshotView.vala (+9/-1)
To merge this branch: bzr merge lp:~tintou/slingshot/fix_rtl
Reviewer Review Type Date Requested Status
Tom Beckmann (community) Approve
Review via email: mp+232870@code.launchpad.net

Commit message

Fixes RTL positionning

Description of the change

Fixes RTL positionning

To post a comment you must log in.
lp:~tintou/slingshot/fix_rtl updated
451. By Launchpad Translations on behalf of elementary-pantheon

Launchpad automatic translations update.

452. By Launchpad Translations on behalf of elementary-pantheon

Launchpad automatic translations update.

Revision history for this message
Tom Beckmann (tombeckmann) wrote :

I think this may have problems with multimonitor. You should probably grab the width of the monitor and subtract the width of the window to make sure it won't overlap.

review: Needs Fixing
lp:~tintou/slingshot/fix_rtl updated
453. By Launchpad Translations on behalf of elementary-pantheon

Launchpad automatic translations update.

454. By Launchpad Translations on behalf of elementary-pantheon

Launchpad automatic translations update.

455. By spautz-julien

Centralize and clean up magic numbers of dimensions, padding, spacing, etc. Also fixes bug #1016154.

456. By Djax

Search generic name (lp:1347956)

457. By Cody Garver

No longer whitelist ibus-setup.desktop. It's bloody frightful. Whatever feature is needed from here should be added to lp:switchboard-plug-keyboard or something.

Revision history for this message
Corentin Noël (tintou) wrote :

@Tom: okay, fixed it
The popover arrow is not pointing the "Applications" label anymore in RTL because of this change but the Granite PopOver widget is missing any repointing function. So it's still better than what is in trunk

lp:~tintou/slingshot/fix_rtl updated
458. By Launchpad Translations on behalf of elementary-pantheon

Launchpad automatic translations update.

459. By Launchpad Translations on behalf of elementary-pantheon

Launchpad automatic translations update.

460. By Danielle Foré

no ellipsis

461. By Corentin Noël

Fixed mispositionning with RTL languages.

462. By Corentin Noël

Replaced Screen with Monitor.

463. By Corentin Noël

Merge two lines.

464. By Corentin Noël

get existing values.

Revision history for this message
Tom Beckmann (tombeckmann) wrote :

Looks great!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/SlingshotView.vala'
--- src/SlingshotView.vala 2014-10-14 01:30:37 +0000
+++ src/SlingshotView.vala 2014-10-14 18:28:04 +0000
@@ -364,6 +364,10 @@
364 reposition (false);364 reposition (false);
365 });365 });
366366
367 get_style_context ().notify["direction"].connect (() => {
368 reposition (false);
369 });
370
367 // check for change in gala settings371 // check for change in gala settings
368 Slingshot.settings.gala_settings.changed.connect (gala_settings_changed);372 Slingshot.settings.gala_settings.changed.connect (gala_settings_changed);
369 gala_settings_changed ();373 gala_settings_changed ();
@@ -381,7 +385,6 @@
381 }385 }
382386
383 private void reposition (bool show=true) {387 private void reposition (bool show=true) {
384
385 debug("Repositioning");388 debug("Repositioning");
386389
387 Gdk.Rectangle monitor_dimensions, app_launcher_pos;390 Gdk.Rectangle monitor_dimensions, app_launcher_pos;
@@ -391,6 +394,11 @@
391 width = 100,394 width = 100,
392 height = 30395 height = 30
393 };396 };
397
398 if (get_style_context ().direction == Gtk.TextDirection.RTL) {
399 app_launcher_pos.x += monitor_dimensions.width - this.get_window ().get_width ();
400 }
401
394 move_to_rect (app_launcher_pos, show);402 move_to_rect (app_launcher_pos, show);
395 }403 }
396404

Subscribers

People subscribed via source and target branches