~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to src/dxmain.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2001-2006 Artifex Software, Inc.
 
1
/* Copyright (C) 2001-2007 Artifex Software, Inc.
2
2
   All Rights Reserved.
3
3
  
4
4
   This software is provided AS-IS with no warranty, either express or
10
10
   or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
 
/* $Id: dxmain.c 8022 2007-06-05 22:23:38Z giles $ */
 
13
/* $Id: dxmain.c 8377 2007-11-18 09:30:55Z ghostgum $ */
14
14
 
15
15
/* dxmain.c */
16
16
/* 
691
691
        (color == DISPLAY_COLORS_SEPARATION)) {
692
692
        /* check if separations have changed */
693
693
        int i;
694
 
        int num_visible = 0;
695
694
        gchar *str;
696
695
        for (i=0; i<IMAGE_DEVICEN_MAX; i++) {
697
696
            gtk_label_get(
705
704
                    img->devicen[i].name);
706
705
                gtk_widget_show(img->separation[i]);
707
706
            }
708
 
            if (img->devicen[i].used && img->devicen[i].visible)
709
 
                num_visible++;
710
707
        }
711
 
        if (num_visible <= 1)
712
 
            gtk_widget_show(img->separation[i]);
713
 
        else
714
 
            gtk_widget_hide(img->separation[i]);
715
708
    }
716
709
                
717
710
    /* some formats need to be converted for use by GdkRgb */