eagleoneraptor

Map window with GtkBox

Aug 18th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. diff --git a/src/mainWindow.js b/src/mainWindow.js
  2. index 83ba6de..67a6e08 100644
  3. --- a/src/mainWindow.js
  4. +++ b/src/mainWindow.js
  5. @@ -55,6 +55,7 @@ const MainWindow = new Lang.Class({
  6. let ui = Utils.getUIObject('main-window', [ 'app-window',
  7. 'header-bar',
  8. 'layers-button']);
  9. + overlay = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL });
  10. this.window = ui.appWindow;
  11. this.window.application = app;
  12. this._overlay = overlay;
  13. @@ -62,12 +63,12 @@ const MainWindow = new Lang.Class({
  14. ui.appWindow.add(this._overlay);
  15.  
  16. this.mapView = new MapView.MapView();
  17. - overlay.add(this.mapView);
  18. + overlay.pack_start(this.mapView, 1, 1, 0);
  19.  
  20. this.mapView.gotoUserLocation(false);
  21.  
  22. this._sidebar = new Sidebar.Sidebar(this.mapView);
  23. - overlay.add_overlay(this._sidebar);
  24. + overlay.pack_start(this._sidebar, 1, 1, 0);
  25. Application.routeService.route.connect('update',
  26. this._setRevealSidebar.bind(this, true));
  27.  
  28. @@ -83,7 +84,7 @@ const MainWindow = new Lang.Class({
  29. this._initSignals();
  30. this._restoreWindowGeometry();
  31.  
  32. - this._overlay.add_overlay(new ZoomControl.ZoomControl(this.mapView));
  33. + //this._overlay.add_overlay(new ZoomControl.ZoomControl(this.mapView));
  34. this._overlay.show_all();
  35. },
  36.  
  37. diff --git a/src/mapBubble.js b/src/mapBubble.js
  38. index 5ca0135..f747327 100644
  39. --- a/src/mapBubble.js
  40. +++ b/src/mapBubble.js
  41. @@ -37,6 +37,8 @@ const MapBubble = new Lang.Class({
  42. params.relative_to = params.mapView;
  43. delete params.mapView;
  44.  
  45. + params.modal = false;
  46. +
  47. this.parent(params);
  48. },
Advertisement
Add Comment
Please, Sign In to add comment