/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Copyright (C) 2000-2002 Ximian Inc. * * Authors: Not Zed * Jeffrey Stedfast * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef _FILTER_PART_H #define _FILTER_PART_H #include #include #include "filter-input.h" #define FILTER_TYPE_PART (filter_part_get_type ()) #define FILTER_PART(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FILTER_TYPE_PART, FilterPart)) #define FILTER_PART_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FILTER_TYPE_PART, FilterPartClass)) #define IS_FILTER_PART(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FILTER_TYPE_PART)) #define IS_FILTER_PART_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FILTER_TYPE_PART)) #define FILTER_PART_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FILTER_TYPE_PART, FilterElementClass)) typedef struct _FilterPart FilterPart; typedef struct _FilterPartClass FilterPartClass; struct _FilterPart { GObject parent_object; struct _FilterPartPrivate *priv; char *name; char *title; char *code; GList *elements; }; struct _FilterPartClass { GObjectClass parent_class; /* virtual methods */ /* signals */ }; GType filter_part_get_type (void); FilterPart *filter_part_new (void); /* methods */ gboolean filter_part_validate (FilterPart *fp); int filter_part_eq (FilterPart *fp, FilterPart *fc); int filter_part_xml_create (FilterPart *ff, xmlNodePtr node); xmlNodePtr filter_part_xml_encode (FilterPart *fe); int filter_part_xml_decode (FilterPart *fe, xmlNodePtr node); FilterPart *filter_part_clone (FilterPart *fp); void filter_part_copy_values (FilterPart *dfp, FilterPart *sfp); FilterElement *filter_part_find_element (FilterPart *ff, const char *name); GtkWidget *filter_part_get_widget (FilterPart *ff); void filter_part_build_code (FilterPart *ff, GString *out); void filter_part_expand_code (FilterPart *ff, const char *str, GString *out); /* static functions */ void filter_part_build_code_list (GList *l, GString *out); FilterPart *filter_part_find_list (GList *l, const char *name); FilterPart *filter_part_next_list (GList *l, FilterPart *last); #endif /* ! _FILTER_PART_H */ e'>range
blob: 32a911009d48694cb73364b7d4f7182142f6b46b (plain) (tree)











































                                                                     
                     

                 
                                                   

         
                                                               
                                                                 










                                                                               
              

                                   


                                                                    


                                                                                                                        








                                   



                                             






                                                                              



                                                                                                                        

                   









                                                                    


                                                                                                                    







                 
                   
                                                   















                                         



                                                                                                                    
                                                                                           
                                                                        
                                                                 

               






                                                                   
                                                      















                                                                                                 





                 
                 

             













                                                                                                  
                       
                              






                                                  


                                                                                                                    



                                                                                           













































                                                                                                                               
                  








                                                                                                    









                                                    


                                                                                                                    



               






                                    


















































                                                                               

                                                                      

















































































                                                                                              

                                                                      













                                                                                              

                             

                              
                       



                                                                  
                                                

                                                        
                                                                                          
















                                  















                                                                       









                                                                                                     

                                                    




                                                            
                                                            



                                            
                                                        




                                                     
                                                    

              
                                   
                                                     

     








                                                                         
                                 

                      
      










                                                         



                                                      
                                                           



                                                          
                                                               


                                  
                                                








                                                                       



                                                      

                                   
                                                           




                                                        










































                                                                                          
                                                                          












                                                          
              
                                                                        
      
#!/bin/sh
#
# Verifies that Evolution and all its supporting components
# are installed correctly. A tool to weed out common
# build problems.
#
# (C)2000 Helix Code, Inc.
# Author: Peter Williams <peterw@helixcode.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public License
# as published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

problem() {
    echo "I detected the following problem: $problem"
    if test x"$rpmsystem" = xyes ; then
    echo "Suggested solution via RPM: $rpmsolution"
    fi
    if test x"$debsystem" = xyes ; then
    echo "Suggested solution via DEB: $debsolution"
    fi
    echo "Suggested solution via sources: $srcsolution"
    if test x"$comment" != x ; then
    echo ""
    echo "$comment"
    fi
    exit 1
}

check_config() {
    #bigname=$1
    #cfgname=$2
    #pkgname=$3
    eval $1=\${$1-$2}

    eval val=\$$1
    if type $val </dev/null 1>/dev/null 2>&1 ; then
    :
    else
    problem="Cannot find $2 or it ($val) is not executable"
    rpmsolution="Install or reinstall the '$3-devel' package"
    debsolution="Install or reinstall the $3 development libraries." #FIXME
    srcsolution="Get the latest release of $3 and install it."
    comment="If you know that $3 is installed, try setting the
environment variable $1 to its location"
    problem
    fi
}

check_prefix() {
    #othercfg=$1
    #othername=$2
    #strict=$3

    eval otherpfx=\`\$$1 --prefix\`
    if test x"$3" = xstrict ; then
    if test x"$otherpfx" != x"$gl_prefix" ; then
        problem="gnome-libs and $2 do not share the same prefix"
        rpmsolution="This problem shouldn't happen with RPM installations. Verify your installation of Helix Gnome."
        debsolution="This problem shouldn't happen with DEB installations. Verify your installation of Helix Gnome."
        srcsolution="Re-run 'configure' in $2's source directory with the flag '--prefix=$gl_prefix'."
        problem
    fi
    else
    IFSbak="$IFS"
    ok="$GNOME_PATH:$gl_prefix"
    IFS=":"
    passed=no

    for e in $ok; do
        if test x"$e" != x ; then
        if test $otherpfx = $e ; then
            passed=yes;
        fi
        fi
    done

    IFS="$IFSbak"

    if test x"$passed" = xno ; then
        problem="$2 is not in GNOME_PATH or the same prefix as gnome-libs"
        rpmsolution="This problem shouldn't happen with RPM installations. Verify your installation of Helix Gnome."
        debsolution="This problem shouldn't happen with DEB installations. Verify your installation of Helix Gnome."
        srcsolution="Re-run 'configure' in $2's source directory with the flag '--prefix=$gl_prefix'."
        comment="Try exporting an environment variable 'GNOME_PATH' with the prefix of $2."
        problem
    fi
    fi
}

check_sysconf() {
    #othercfg=$1
    #othername=$2

    eval othersysc=\`\$$1 --sysconfdir\`
    if test x"$othersysc" != x"$gl_sysconf" ; then
    problem="gnome-libs and $2 do not share the same sysconfdir"
    rpmsolution="This problem shouldn't happen with RPM installations. Verify your installation of Helix Gnome."
    debsolution="This problem shouldn't happen with DEB installations. Verify your installation of Helix Gnome."
    srcsolution="Re-run 'configure' in $2's source directory with the flag '--sysconfdir=$gl_sysconf'."
    problem
    fi
}

check_oafinfo() {
    #basename=$1
    #othername=$2

    base=$1.oafinfo
    search="${oaf_prefix}/share/oaf:$OAF_INFO_PATH"
    IFSback="$IFS"
    IFS=":"
    ok=no

    for ping in $search ; do
    if test x"$ping" != x ; then
        if test -f $ping/$base ; then
        file=$ping/$base
        ok=yes
        fi
    fi
    done

    IFS="$IFSback"

    if test x$ok = xno ; then
    problem="$1.oafinfo isn't installed into Gnome's prefix or in OAF_INFO_PATH"
    rpmsolution="This problem shouldn't happen with RPM installations. Verify your installation of Helix Gnome."
    debsolution="This problem shouldn't happen with DEB installations. Verify your installation of Helix Gnome."