After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 702583 - implement basic printing of maps
implement basic printing of maps
Status: RESOLVED OBSOLETE
Product: gnome-maps
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on: 653590
Blocks:
 
 
Reported: 2013-06-18 16:38 UTC by Andreas Nilsson
Modified: 2016-01-06 05:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implement printing (4.43 KB, patch)
2013-06-20 14:03 UTC, Kalev Lember
needs-work Details | Review
Implement printing (6.34 KB, patch)
2013-06-20 14:48 UTC, Kalev Lember
needs-work Details | Review
Implement printing (6.33 KB, patch)
2013-06-20 15:55 UTC, Kalev Lember
accepted-commit_now Details | Review

Description Andreas Nilsson 2013-06-18 16:38:11 UTC
We currently have no way of printing maps on your printer.
It would be cool to have the basics of this covered with just simple print support of the current view and some print preview.
Comment 1 Kalev Lember 2013-06-20 14:03:39 UTC
Created attachment 247328 [details] [review]
Implement printing
Comment 2 Zeeshan Ali 2013-06-20 14:12:02 UTC
Review of attachment 247328 [details] [review]:

Looks perfect otherwise and I have seen it in action, live :) Would be better to put the printing code into a separate module/class though.

::: src/mapView.js
@@ +124,3 @@
+
+        try {
+            //this._printOperation.run(Gtk.PrintOperationAction.PREVIEW, null);

This needs removing..

@@ +143,3 @@
+        let stride = stage.get_width() * 4;
+        let pixbuf = GdkPixbuf.Pixbuf.new_from_data(imageData,
+                                         GdkPixbuf.Colorspace.RGB,

args not aligned
Comment 3 Kalev Lember 2013-06-20 14:48:36 UTC
Created attachment 247330 [details] [review]
Implement printing
Comment 4 Zeeshan Ali 2013-06-20 15:31:31 UTC
Review of attachment 247330 [details] [review]:

Looks good otherwise.

::: src/mainWindow.js
@@ +231,3 @@
 
+    _onPrintActivate: function() {
+        this._printer = new Printer.Printer(this.window);

we should just pass 'this' here or also 'mapView.view.' so Printer.print() doesn't need any arg.

::: src/printer.js
@@ +58,3 @@
+
+    onPrintPage: function(printOperation, printContext, pageNumber) {
+

Redundant line
Comment 5 Kalev Lember 2013-06-20 15:55:02 UTC
Created attachment 247341 [details] [review]
Implement printing
Comment 6 Zeeshan Ali 2013-06-20 15:56:45 UTC
Review of attachment 247341 [details] [review]:

ACK
Comment 7 Zeeshan Ali 2013-09-24 12:32:41 UTC
Oh, this is fixed already.
Comment 8 Kalev Lember 2013-09-24 21:01:23 UTC
This is still waiting on the clutter changes in https://bugzilla.gnome.org/show_bug.cgi?id=702754
Comment 9 Zeeshan Ali 2013-09-24 21:17:43 UTC
(In reply to comment #8)
> This is still waiting on the clutter changes in
> https://bugzilla.gnome.org/show_bug.cgi?id=702754

Yikes, i read the status of the patch as 'committed'. :) Whats the dependent bug waiting on, it seems to have a working patch. :( We should have followed up on this to get this in 3.10 but oh well there is always 3.12. :)