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 120924 - gnome printing integration
gnome printing integration
Status: RESOLVED DUPLICATE of bug 141241
Product: epiphany
Classification: Core
Component: Printing
unspecified
Other Linux
: Normal enhancement
: 1.4
Assigned To: Christian Persch
Marco Pesenti Gritti
: 112619 120486 126303 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-08-28 17:01 UTC by FACORAT Fabrice
Modified: 2005-09-28 00:18 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
first patch, needs work -- testing & feedback appreciated (depends on gtk+ cvs head and gnomeprint(ui) 2.3.1) (57.12 KB, patch)
2003-08-28 18:03 UTC, Christian Persch
none Details | Review
updated patch (54.90 KB, patch)
2003-09-14 14:12 UTC, Christian Persch
none Details | Review
new diff of print-dialog.c -- support margin settings (22.80 KB, patch)
2003-09-14 14:43 UTC, Christian Persch
none Details | Review

Description FACORAT Fabrice 2003-08-28 17:01:05 UTC
epiphany is not well integrated with gnome printing capatibilities. 
1 : You don't have the ability to choese your printer from a list 
contrary to gedit/evolution/... 
This is painfull in corporate environment when you have several printers. 
Having to give the name of the print ( -P Printername ) or use replace 
lpr by an other graphical print tool ( kprinter, xpp, ... ) is not user 
friendy. 
 
2 : you can't specify if you want to print background, or at least if by 
selecting color it means background too, the printing is quality poor 
because of some limitations of mozilla ps generator. 
one solution could be to use or have a plugin for xprint ( 
http://xprint.mozdev.org/ ) thus allowing us to embedded fonts in 
Postcript, have printers list, etc ... 
 
This should be really fixed before 1.0 release
Comment 1 Christian Persch 2003-08-28 17:30:06 UTC
*** Bug 120486 has been marked as a duplicate of this bug. ***
Comment 2 Christian Persch 2003-08-28 17:34:34 UTC
I've already written a patch to gnomeprint-ify epiphany, and i'm
looking into xprint too.

> This should be really fixed before 1.0 release
No way, we're in hard code freeze and 1.0 will be released shortly.
It'll have to wait.
Comment 3 Christian Persch 2003-08-28 17:42:52 UTC
*** Bug 112619 has been marked as a duplicate of this bug. ***
Comment 4 Christian Persch 2003-08-28 18:03:23 UTC
Created attachment 19591 [details] [review]
first patch, needs work -- testing & feedback appreciated (depends on gtk+ cvs head and gnomeprint(ui) 2.3.1)
Comment 5 Marco Pesenti Gritti 2003-08-28 21:28:27 UTC
chpe, could you explain how the thing works in general. Like the trick
we use to have a gnomeprint dialog while not using gnomeprint ?
Comment 6 Marco Pesenti Gritti 2003-09-01 13:23:17 UTC
Sorry for the spam. Reassigning bugs with a target to our next milestone.
Comment 7 Christian Persch 2003-09-14 14:12:27 UTC
Created attachment 19924 [details] [review]
updated patch
Comment 8 Christian Persch 2003-09-14 14:43:17 UTC
Created attachment 19925 [details] [review]
new diff of print-dialog.c -- support margin settings
Comment 9 Christian Persch 2003-09-15 20:19:37 UTC
Marco, can you review the patch?

I think i fixed most of the issues from the last time you commented
about the patch: I moved the callback functions out of C++ files back
into print-dialog.c, made PrintDialog inherit from GnomePrintDialog
instead of mimicking EphyEmbedDialog, and fixed a few misc things.
There are still some FIXMEs in the code, mostly owing to the fact that
GnomePrintDialog and libgnomeprint suck.
Comment 10 Marco Pesenti Gritti 2003-09-17 11:42:49 UTC
        /* FIXME: this was in xd2's gnomeprint patch for galeon,
         * what's it good for ?
         */
        fflush(NULL);

I'd figure out this with clahey before checking in.

/* FIXME: warn on unsuccessful print (at least when printing to file) */

Better to fix this before committing.

static gboolean
printing_done_cb (GObject *data)
{
        g_object_ref (data);
        g_idle_add ((GSourceFunc) printing_done_and_idle_cb, data);
                                                                     
                                                       
        return TRUE;
}

Why are we doing this on idle ?

        // FIXME is this the right env var??
        dir = g_getenv ("TMP");

g_get_tmp_dir ?

        // string = gnome_print_config_to_string (global_config, 0);
        // how to write config to file?
        // g_free (string);

Should we just use a gconf key ? I'd say to look at what gedit does here.

        /* FIXME: append custom notebook page for
           margins, headers, footers, colour/grayscale, etc. */

I thought you implemented these ? I'd wait at least margins and
headers/footers are implemented before committing.

        /* FIXME: we need to unref global_config and g_free config_file
         * somewhere on exit...
         */

Should fix before committing.

        // FIXME disable setting which are unsupported by gnomeprint's
        // ps backend [like print-to-PDF, combine pages etc.]

Not sure if I get what you mean here. Disable where ?
For comments should use /* */

You are constructing in _show too, but that could be called multiple
times.
Comment 11 Christian Persch 2003-11-15 19:39:36 UTC
*** Bug 126303 has been marked as a duplicate of this bug. ***
Comment 12 Christian Persch 2003-11-17 12:11:40 UTC
Assigning to new "Printing" component.
Comment 13 Luis Villa 2004-03-01 19:51:29 UTC
Cc'ing chris, jody, and myself. I know this is currently marked 'low'
priority but I personally think it's a big one- newbies want common
printer dialogs everywhere, and this is the way we're currently trying
to do it. If the gnomeprint stuff is in some way inadequate, please
let jody know: he's tasked with improving it so that it is easier for
the rest of GNOME to work with. It would be really great to get in the
2.8 release of ephy. Thanks...
Comment 14 Marco Pesenti Gritti 2004-03-01 20:01:58 UTC
Yeah, not sure why we actually marked it low.
Comment 15 Marco Pesenti Gritti 2004-04-27 22:17:56 UTC
Moving to a new one since there is way too much irrelevant stuff here.

*** This bug has been marked as a duplicate of 141241 ***