From cd26e8a609574335e684df2f1eef55f2a11c2bdf Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 24 Apr 2009 13:35:59 +0200 Subject: Remove unused files I forgot to remove unused files from sources in the commit for GN-bug #572348 --- .../printing/e-contact-print-style-editor.c | 123 -- .../printing/e-contact-print-style-editor.h | 75 - addressbook/printing/e-contact-print.glade | 2018 -------------------- .../printing/test-contact-print-style-editor.c | 58 - 4 files changed, 2274 deletions(-) delete mode 100644 addressbook/printing/e-contact-print-style-editor.c delete mode 100644 addressbook/printing/e-contact-print-style-editor.h delete mode 100644 addressbook/printing/e-contact-print.glade delete mode 100644 addressbook/printing/test-contact-print-style-editor.c (limited to 'addressbook/printing') diff --git a/addressbook/printing/e-contact-print-style-editor.c b/addressbook/printing/e-contact-print-style-editor.c deleted file mode 100644 index 22a01f05e4..0000000000 --- a/addressbook/printing/e-contact-print-style-editor.c +++ /dev/null @@ -1,123 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see - * - * - * Authors: - * Chris Lahey - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * - */ - -#include "e-contact-print-style-editor.h" -#include "e-util/e-util-private.h" - -static void e_contact_print_style_editor_init (EContactPrintStyleEditor *card); -static void e_contact_print_style_editor_class_init (EContactPrintStyleEditorClass *class); -static void e_contact_print_style_editor_finalize (GObject *object); - -static gpointer parent_class; - -GType -e_contact_print_style_editor_get_type (void) -{ - static GType type = 0; - - if (G_UNLIKELY (type == 0)) { - static const GTypeInfo type_info = { - sizeof (EContactPrintStyleEditorClass), - (GBaseInitFunc) NULL, - (GBaseFinalizeFunc) NULL, - (GClassInitFunc) e_contact_print_style_editor_class_init, - (GClassFinalizeFunc) NULL, - NULL, /* class_data */ - sizeof (EContactPrintStyleEditor), - 0, /* n_preallocs */ - (GInstanceInitFunc) e_contact_print_style_editor_init, - NULL /* value_table */ - }; - - type = g_type_register_static ( - GTK_TYPE_VBOX, "EContactPrintStyleEditor", - &type_info, 0); - } - - return type; -} - -static void -e_contact_print_style_editor_class_init (EContactPrintStyleEditorClass *class) -{ - GObjectClass *object_class; - - parent_class = g_type_class_peek_parent (class); - - object_class = G_OBJECT_CLASS (class); - object_class->finalize = e_contact_print_style_editor_finalize; -} - -#if 0 -static void -_add_image(GtkTable *table, gchar *image, int left, int right, int top, int bottom) -{ - gtk_table_attach(table, - gtk_widget_new(gtk_alignment_get_type(), - "child", gnome_pixmap_new_from_file(image), - "xalign", (double) 0, - "yalign", (double) 0, - "xscale", (double) 0, - "yscale", (double) 0, - NULL), - left, right, top, bottom, - GTK_FILL, GTK_FILL, - 0, 0); -} -#endif - -static void -e_contact_print_style_editor_init (EContactPrintStyleEditor *e_contact_print_style_editor) -{ - GladeXML *gui; - char *gladefile; - - /* e_contact_print_style_editor->card = NULL;*/ - gladefile = g_build_filename (EVOLUTION_GLADEDIR, - "e-contact-print.glade", - NULL); - gui = glade_xml_new (gladefile, NULL, NULL); - g_free (gladefile); - - e_contact_print_style_editor->gui = gui; - gtk_widget_reparent(glade_xml_get_widget(gui, "vbox-contact-print-style-editor"), - GTK_WIDGET(e_contact_print_style_editor)); -} - -static void -e_contact_print_style_editor_finalize (GObject *object) -{ - EContactPrintStyleEditor *e_contact_print_style_editor = E_CONTACT_PRINT_STYLE_EDITOR(object); - - if (e_contact_print_style_editor->gui != NULL) { - g_object_unref(e_contact_print_style_editor->gui); - e_contact_print_style_editor->gui = NULL; - } - - G_OBJECT_CLASS (parent_class)->finalize (object); -} - -GtkWidget* -e_contact_print_style_editor_new (char *filename) -{ - return g_object_new (e_contact_print_style_editor_get_type (), NULL); -} diff --git a/addressbook/printing/e-contact-print-style-editor.h b/addressbook/printing/e-contact-print-style-editor.h deleted file mode 100644 index 15460f6e12..0000000000 --- a/addressbook/printing/e-contact-print-style-editor.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see - * - * - * Authors: - * Chris Lahey - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * - */ - -#ifndef __E_CONTACT_PRINT_STYLE_EDITOR_H__ -#define __E_CONTACT_PRINT_STYLE_EDITOR_H__ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#pragma } -#endif /* __cplusplus */ - -/* EContactPrintStyleEditor - A dialog displaying information about a contact. - * - * The following arguments are available: - * - * name type read/write description - * -------------------------------------------------------------------------------- - * card ECard * R The card currently being edited - */ - -#define E_CONTACT_PRINT_STYLE_EDITOR_TYPE (e_contact_print_style_editor_get_type ()) -#define E_CONTACT_PRINT_STYLE_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_CONTACT_PRINT_STYLE_EDITOR_TYPE, EContactPrintStyleEditor)) -#define E_CONTACT_PRINT_STYLE_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_CONTACT_PRINT_STYLE_EDITOR_TYPE, EContactPrintStyleEditorClass)) -#define E_IS_MINICARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_CONTACT_PRINT_STYLE_EDITOR_TYPE)) -#define E_IS_MINICARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_CONTACT_PRINT_STYLE_EDITOR_TYPE)) - - -typedef struct _EContactPrintStyleEditor EContactPrintStyleEditor; -typedef struct _EContactPrintStyleEditorClass EContactPrintStyleEditorClass; - -struct _EContactPrintStyleEditor -{ - GtkVBox parent; - - /* item specific fields */ - GladeXML *gui; -}; - -struct _EContactPrintStyleEditorClass -{ - GtkVBoxClass parent_class; -}; - - -GtkWidget *e_contact_print_style_editor_new(char *filename); -GType e_contact_print_style_editor_get_type (void); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - - -#endif /* __E_CONTACT_PRINT_STYLE_EDITOR_H__ */ diff --git a/addressbook/printing/e-contact-print.glade b/addressbook/printing/e-contact-print.glade deleted file mode 100644 index 22e54c849d..0000000000 --- a/addressbook/printing/e-contact-print.glade +++ /dev/null @@ -1,2018 +0,0 @@ - - - - - - no - Page Setup: - GTK_WINDOW_TOPLEVEL - no - no - no - GTK_WIN_POS_CENTER_ON_PARENT - - - - no - 8 - yes - - - - GTK_BUTTONBOX_END - 8 - yes - - - - yes - yes - yes - gtk-ok - yes - yes - - - - - - yes - yes - yes - gtk-apply - yes - yes - - - - - - yes - yes - yes - gtk-cancel - yes - yes - - - - - 0 - no - yes - GTK_PACK_END - - - - - - no - 5 - yes - - - - 5 - no - 16 - yes - - - - Style name: - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - no - - 0 - yes - yes - - - 0 - no - no - - - - - 0 - yes - yes - - - - - - yes - yes - yes - GTK_POS_TOP - no - 2 - 2 - no - yes - - - - 5 - no - 5 - yes - - - - 0.5 - 0.5 - 0 - 0 - yes - - - - Preview: - 0 - GTK_SHADOW_ETCHED_IN - yes - - - - - - - - - 0 - yes - yes - - - - - - yes - 7 - yes - - - - Options - 0 - GTK_SHADOW_ETCHED_IN - yes - - - - 0 - 0 - 0 - 0 - yes - - - - 8 - no - 0 - 0 - 6 - 5 - yes - - - - Include: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - 1 - 4 - 5 - 0 - 0 - fill - fill - - - - - - Sections: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - 1 - 0 - 1 - 0 - 0 - fill - fill - - - - - - 0 - 0.5 - 0 - 0 - yes - - - - yes - Immediately follow each other - yes - yes - yes - - - - - 1 - 5 - 0 - 1 - 0 - 0 - fill - fill - - - - - - yes - Letter tabs on side - no - yes - yes - - - 1 - 5 - 4 - 5 - 0 - 0 - fill - fill - - - - - - yes - Headings for each letter - no - yes - yes - - - 1 - 5 - 5 - 6 - 0 - 0 - fill - fill - - - - - - 0 - 0.5 - 0 - 0 - yes - - - - yes - Start on a new page - no - yes - yes - - - - - 1 - 5 - 1 - 2 - 0 - 0 - fill - fill - - - - - - Number of columns: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - 3 - 2 - 3 - 0 - 2 - fill - fill - - - - - - Blank forms at end: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - 3 - 3 - 4 - 0 - 2 - fill - fill - - - - - - 0 - 0.5 - 0 - 0 - yes - - - - yes - 1 - 0 - no - GTK_UPDATE_ALWAYS - no - no - yes - 2 0 100 1 10 0 - - - - - 3 - 4 - 3 - 4 - 0 - 2 - fill - fill - - - - - - 0 - 0.5 - 0 - 0 - yes - - - - yes - 1 - 0 - no - GTK_UPDATE_ALWAYS - no - 45 - no - yes - 1 0 100 1 10 0 - - - - - 3 - 4 - 2 - 3 - 0 - 2 - fill - fill - - - - - - - - - 0 - yes - yes - - - - - - no - 8 - yes - - - - Fonts - 0 - GTK_SHADOW_ETCHED_IN - yes - - - - 8 - no - 13 - 8 - 2 - 2 - yes - - - - 0.5 - 1 - 1 - 0 - yes - - - - yes - F_ont... - GTK_RELIEF_NORMAL - yes - yes - - - - - 1 - 2 - 1 - 2 - 0 - 0 - fill - fill - - - - - - 0.5 - 1 - 1 - 0 - yes - - - - yes - _Font... - GTK_RELIEF_NORMAL - 90 - yes - yes - - - - - 1 - 2 - 0 - 1 - 0 - 0 - fill - fill - - - - - - no - 0 - yes - - - - Headings - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - yes - 10 pt. Tahoma - 100 - 0 - yes - yes - - - 0 - no - no - - - - - 0 - 1 - 0 - 1 - 0 - 0 - expand|fill - fill - - - - - - no - 0 - yes - - - - Body - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - yes - 8 pt. Tahoma - 100 - 0 - yes - yes - - - 0 - no - no - - - - - 0 - 1 - 1 - 2 - 0 - 0 - expand|fill - fill - - - - - - - 0 - yes - yes - - - - - - Shading - 0 - GTK_SHADOW_ETCHED_IN - yes - - - - yes - Print using gray shading - no - yes - yes - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - - - - Format - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - tab - - - - - - yes - 0 - yes - - - - no - 0 - yes - - - - Paper - 0 - GTK_SHADOW_ETCHED_IN - yes - - - - 10 - no - 0 - yes - - - - no - 0 - yes - - - - Type: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - GTK_POLICY_ALWAYS - GTK_POLICY_ALWAYS - GTK_SHADOW_IN - yes - - - - yes - no - yes - - - - CList:title - label26 - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - - - - - - GTK_UPDATE_CONTINUOUS - yes - - - - - - GTK_UPDATE_CONTINUOUS - yes - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - - no - 0 - yes - - - - Dimensions: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - 0 - yes - - - - Width: - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - yes - - 1 - 0 - yes - yes - - - 0 - yes - yes - - - - - - Height: - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - yes - - 1 - 0 - yes - yes - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - - no - 0 - yes - - - - Paper source: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - no - no - yes - no - yes - yes - - - - yes - yes - - 0 - yes - yes - - - - - - yes - - - - yes - - - - - 0.0 - yes - - - - - - - - - 0 - no - no - - - - - 0 - yes - yes - - - - - - - 0 - yes - yes - - - - - - Margins - 0 - GTK_SHADOW_ETCHED_IN - yes - - - - 15 - yes - 6 - 9 - 2 - 4 - yes - - - - Top: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - 1 - 0 - 1 - 0 - 0 - fill - expand|fill - - - - - - Bottom: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - 1 - 1 - 2 - 0 - 0 - fill - expand|fill - - - - - - Left: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 2 - 3 - 0 - 1 - 0 - 0 - fill - expand|fill - - - - - - yes - yes - - 1 - 0 - yes - yes - - - 1 - 2 - 0 - 1 - 0 - 0 - expand|fill - - - - - - - yes - yes - - 1 - 0 - yes - yes - - - 3 - 4 - 0 - 1 - 0 - 0 - expand|fill - - - - - - - yes - yes - - 1 - 0 - yes - yes - - - 3 - 4 - 1 - 2 - 0 - 0 - expand|fill - - - - - - - yes - yes - - 1 - 0 - yes - yes - - - 1 - 2 - 1 - 2 - 0 - 0 - expand|fill - - - - - - - Right: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 2 - 3 - 1 - 2 - 0 - 0 - fill - expand|fill - - - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - - no - 0 - yes - - - - Page - 0 - GTK_SHADOW_ETCHED_IN - yes - - - - 10 - no - 0 - yes - - - - no - 0 - yes - - - - Size: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - GTK_POLICY_ALWAYS - GTK_POLICY_ALWAYS - GTK_SHADOW_IN - yes - - - - yes - no - yes - - - - CList:title - label26 - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - - - - - - GTK_UPDATE_CONTINUOUS - yes - - - - - - GTK_UPDATE_CONTINUOUS - yes - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - - no - 0 - yes - - - - Dimensions: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - 0 - yes - - - - Width: - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - yes - - 1 - 0 - yes - yes - - - 0 - yes - yes - - - - - - Height: - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - yes - - 1 - 0 - yes - yes - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - - - 0 - yes - yes - - - - - - Orientation - 0 - GTK_SHADOW_ETCHED_IN - yes - - - - no - 10 - yes - - - - - - - - no - 5 - yes - - - - 0 - 1 - 0 - 0 - yes - - - - yes - Portrait - no - yes - yes - - - - - 0 - yes - yes - - - - - - 0 - 0 - 0 - 0 - yes - - - - yes - Landscape - no - yes - yes - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - - - - Paper - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - tab - - - - - - 8 - no - 0 - yes - - - - yes - 4 - 4 - 4 - 3 - yes - - - - 0 - 1 - 0 - 0 - yes - - - - yes - F_ont... - GTK_RELIEF_NORMAL - yes - yes - - - - - 1 - 2 - 2 - 3 - 0 - 0 - fill - fill - - - - - - yes - no - - GTK_WRAP_WORD - 50 - yes - - - 0 - 1 - 1 - 2 - 0 - 0 - fill - expand|fill - - - - - - yes - no - - GTK_WRAP_WORD - 50 - yes - - - 2 - 3 - 1 - 2 - 0 - 0 - expand|fill - fill - - - - - - yes - no - - GTK_WRAP_WORD - 50 - yes - - - 1 - 2 - 1 - 2 - 0 - 0 - fill - fill - - - - - - yes - no - - GTK_WRAP_WORD - 50 - yes - - - 0 - 1 - 3 - 4 - 0 - 0 - fill - expand|fill - - - - - - yes - no - - GTK_WRAP_WORD - 5 - yes - - - 1 - 2 - 3 - 4 - 0 - 0 - fill - fill - - - - - - yes - no - - GTK_WRAP_WORD - 50 - yes - - - 2 - 3 - 3 - 4 - 0 - 0 - fill - fill - - - - - - 0.5 - 1 - 1 - 0 - yes - - - - no - 0 - yes - - - - Header - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - yes - - 0 - yes - yes - - - 0 - no - no - - - - - - - 0 - 1 - 0 - 1 - 0 - 0 - expand|fill - fill - - - - - - 0.5 - 1 - 1 - 0 - yes - - - - no - 0 - yes - - - - Footer: - GTK_JUSTIFY_CENTER - no - 0 - 0.5 - 0 - 0 - yes - - - 0 - no - no - - - - - - yes - yes - - 0 - yes - yes - - - 0 - no - no - - - - - - - 0 - 1 - 2 - 3 - 0 - 0 - expand|fill - fill - - - - - - 0 - 1 - 0 - 0 - yes - - - - yes - _Font... - GTK_RELIEF_NORMAL - yes - yes - - - - - 1 - 2 - 0 - 1 - 0 - 0 - fill - fill - - - - - 0 - yes - yes - - - - - - no - 0 - yes - - - - GTK_ORIENTATION_HORIZONTAL - GTK_TOOLBAR_ICONS - yes - - - - - - - - - - - - - - - - - - - - - - - 0 - yes - no - - - - - 0 - no - yes - - - - - - yes - Reverse on even pages - no - yes - yes - - - 0 - no - no - - - - - - - - Header/Footer - GTK_JUSTIFY_CENTER - no - 0.5 - 0.5 - 0 - 0 - yes - - - tab - - - - - 0 - yes - yes - - - - - 0 - yes - yes - - - - - 4 - yes - yes - - - - diff --git a/addressbook/printing/test-contact-print-style-editor.c b/addressbook/printing/test-contact-print-style-editor.c deleted file mode 100644 index de9fd6b6d6..0000000000 --- a/addressbook/printing/test-contact-print-style-editor.c +++ /dev/null @@ -1,58 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see - * - * - * Authors: - * Chris Lahey - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * - */ - -#include "config.h" - -#include -#include -#include "e-contact-print-style-editor.h" - -int -main (int argc, char *argv[]) -{ - GtkWidget *editor; - GtkWidget *window; - const gchar *title; - - title = "Contact Print Style Editor Test"; - - gtk_init (&argc, &argv); - - glade_init (); - - window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_window_set_title (GTK_WINDOW (window), title); - - editor = e_contact_print_style_editor_new (""); - gtk_container_add (GTK_CONTAINER (window), editor); - - g_signal_connect ( - window, "delete-event", - G_CALLBACK (gtk_main_quit), NULL); - - gtk_widget_show_all (window); - - gtk_main (); - - /* Not reached. */ - return 0; -} -- cgit v1.2.3