aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/gal-view-minicard.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets/gal-view-minicard.c')
-rw-r--r--addressbook/gui/widgets/gal-view-minicard.c227
1 files changed, 0 insertions, 227 deletions
diff --git a/addressbook/gui/widgets/gal-view-minicard.c b/addressbook/gui/widgets/gal-view-minicard.c
deleted file mode 100644
index da60497cdb..0000000000
--- a/addressbook/gui/widgets/gal-view-minicard.c
+++ /dev/null
@@ -1,227 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * gal-view-minicard.c: An Minicard View
- *
- * Authors:
- * Chris Lahey <clahey@ximian.com>
- *
- * (C) 2000, 2001 Ximian, Inc.
- */
-#include <config.h>
-#include "gal-view-minicard.h"
-#include <libxml/parser.h>
-#include <gal/util/e-xml-utils.h>
-
-#define PARENT_TYPE gal_view_get_type ()
-#define d(x) x
-
-static GalViewClass *gal_view_minicard_parent_class;
-
-static void
-gal_view_minicard_edit (GalView *view, GtkWindow *parent_window)
-{
- /* GalViewMinicard *minicard_view = GAL_VIEW_MINICARD(view); */
-}
-
-static void
-gal_view_minicard_load (GalView *view,
- const char *filename)
-{
- xmlDoc *doc;
- doc = xmlParseFile (filename);
- if (doc) {
- xmlNode *root = xmlDocGetRootElement(doc);
- GAL_VIEW_MINICARD (view)->column_width = e_xml_get_double_prop_by_name_with_default (root, "column_width", 150);
- xmlFreeDoc(doc);
- }
-}
-
-static void
-gal_view_minicard_save (GalView *view,
- const char *filename)
-{
- xmlDoc *doc;
- xmlNode *root;
-
- doc = xmlNewDoc("1.0");
- root = xmlNewNode (NULL, "EMinicardViewState");
- e_xml_set_double_prop_by_name (root, "column_width", GAL_VIEW_MINICARD (view)->column_width);
- xmlDocSetRootElement(doc, root);
- xmlSaveFile(filename, doc);
- xmlFreeDoc(doc);
-}
-
-static const char *
-gal_view_minicard_get_title (GalView *view)
-{
- return GAL_VIEW_MINICARD(view)->title;
-}
-
-static void
-gal_view_minicard_set_title (GalView *view,
- const char *title)
-{
- g_free(GAL_VIEW_MINICARD(view)->title);
- GAL_VIEW_MINICARD(view)->title = g_strdup(title);
-}
-
-static const char *
-gal_view_minicard_get_type_code (GalView *view)
-{
- return "minicard";
-}
-
-static GalView *
-gal_view_minicard_clone (GalView *view)
-{
- GalViewMinicard *gvm, *new;
-
- gvm = GAL_VIEW_MINICARD(view);
-
- new = g_object_new (GAL_TYPE_VIEW_MINICARD, NULL);
- new->title = g_strdup (gvm->title);
- new->column_width = gvm->column_width;
-
- return GAL_VIEW(new);
-}
-
-static void
-gal_view_minicard_dispose (GObject *object)
-{
- GalViewMinicard *view = GAL_VIEW_MINICARD(object);
-
- if (view->title != NULL) {
- gal_view_minicard_detach (view);
- g_free(view->title);
- view->title = NULL;
- }
-
- if (G_OBJECT_CLASS (gal_view_minicard_parent_class)->dispose)
- (* G_OBJECT_CLASS (gal_view_minicard_parent_class)->dispose) (object);
-}
-
-static void
-gal_view_minicard_class_init (GObjectClass *object_class)
-{
- GalViewClass *gal_view_class = GAL_VIEW_CLASS(object_class);
- gal_view_minicard_parent_class = g_type_class_ref (PARENT_TYPE);
-
- gal_view_class->edit = gal_view_minicard_edit ;
- gal_view_class->load = gal_view_minicard_load ;
- gal_view_class->save = gal_view_minicard_save ;
- gal_view_class->get_title = gal_view_minicard_get_title ;
- gal_view_class->set_title = gal_view_minicard_set_title ;
- gal_view_class->get_type_code = gal_view_minicard_get_type_code;
- gal_view_class->clone = gal_view_minicard_clone ;
-
- object_class->dispose = gal_view_minicard_dispose ;
-}
-
-static void
-gal_view_minicard_init (GalViewMinicard *gvm)
-{
- gvm->title = NULL;
- gvm->column_width = 150.0;
-
- gvm->emvw = NULL;
- gvm->emvw_column_width_changed_id = 0;
-}
-
-/**
- * gal_view_minicard_new
- * @title: The name of the new view.
- *
- * Returns a new GalViewMinicard. This is primarily for use by
- * GalViewFactoryMinicard.
- *
- * Returns: The new GalViewMinicard.
- */
-GalView *
-gal_view_minicard_new (const gchar *title)
-{
- return gal_view_minicard_construct (g_object_new (GAL_TYPE_VIEW_MINICARD, NULL), title);
-}
-
-/**
- * gal_view_minicard_construct
- * @view: The view to construct.
- * @title: The name of the new view.
- *
- * constructs the GalViewMinicard. To be used by subclasses and
- * language bindings.
- *
- * Returns: The GalViewMinicard.
- */
-GalView *
-gal_view_minicard_construct (GalViewMinicard *view,
- const gchar *title)
-{
- view->title = g_strdup(title);
- return GAL_VIEW(view);
-}
-
-GType
-gal_view_minicard_get_type (void)
-{
- static GType type = 0;
-
- if (!type) {
- static const GTypeInfo info = {
- sizeof (GalViewMinicardClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) gal_view_minicard_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (GalViewMinicard),
- 0, /* n_preallocs */
- (GInstanceInitFunc) gal_view_minicard_init,
- };
-
- type = g_type_register_static (PARENT_TYPE, "GalViewMinicard", &info, 0);
- }
-
- return type;
-}
-
-static void
-column_width_changed (EMinicardViewWidget *w, double width, GalViewMinicard *view)
-{
- d(g_print("%s: Old width = %f, New width = %f\n", G_GNUC_FUNCTION, view->column_width, width));
- if (view->column_width != width) {
- view->column_width = width;
- gal_view_changed(GAL_VIEW(view));
- }
-}
-
-void
-gal_view_minicard_attach (GalViewMinicard *view, EMinicardViewWidget *emvw)
-{
- gal_view_minicard_detach (view);
-
- view->emvw = emvw;
-
- g_object_ref (view->emvw);
-
- g_object_set (view->emvw,
- "column_width", view->column_width,
- NULL);
-
- view->emvw_column_width_changed_id =
- g_signal_connect(view->emvw, "column_width_changed",
- G_CALLBACK (column_width_changed), view);
-}
-
-void
-gal_view_minicard_detach (GalViewMinicard *view)
-{
- if (view->emvw == NULL)
- return;
- if (view->emvw_column_width_changed_id) {
- g_signal_handler_disconnect (view->emvw,
- view->emvw_column_width_changed_id);
- view->emvw_column_width_changed_id = 0;
- }
- g_object_unref (view->emvw);
- view->emvw = NULL;
-}
>-6/+1 * add blurb about 41910Chris Toshok2003-04-301-0/+1 * [ fixes bug #41910 ] change from model_changed to row_deleted here.Chris Toshok2003-04-301-0/+12 * updatedJeffrey Stedfast2003-04-301-0/+1 * ** See bug #41972Not Zed2003-04-305-14/+41 * Update Czech translationMiloslav Trmac2003-04-302-634/+131 * Fix for bug #41578.Jeffrey Stedfast2003-04-304-11/+28 * updatedJeffrey Stedfast2003-04-301-0/+2 * Remove preceding whitespaceDan Winship2003-04-302-0/+6 * Remove this so that GtkContainer's destroy method will destroy all of theDan Winship2003-04-302-25/+7 * Updated for mailer fixesJeffrey Stedfast2003-04-302-0/+41 * Change the "would you like to recover unsaved drafts?" dialog a QUESTIONJeffrey Stedfast2003-04-302-1/+7 * kill warningsJP Rosevear2003-04-302-1/+5 * [#41013]Not Zed2003-04-293-51/+183 * Added #include <netinet/in.h> for the sockaddr_in6 typedef for at leastJeffrey Stedfast2003-04-292-0/+6 * fix logic for updating selection after a delete when @move_selection_modeChris Toshok2003-04-291-2/+2 * Fix up some stuff for the nognome script Fix up nognome script for SunRodney Dawes2003-04-293-11/+28 * don't do wrapping during editMike Kestner2003-04-291-0/+3 * Fixes #41916Rodrigo Moya2003-04-292-2/+10 * Updated Swedish translation.Christian Rose2003-04-292-105/+114 * Use $(privdatadir) instead of $(prefix)/share/evolution-$(BASE_VERSION)Rodney Dawes2003-04-294-4/+9 * Added HIG-blessed padding to the alarm options dialog. Fixes bug #41221.Anna Marie Dirks2003-04-292-3/+9 * Added appropriate spacing and padding to the calendar/tasks page of theAnna Marie Dirks2003-04-292-6/+14 * Finishes up fixing #41256 by adding appropriate spacing/padding to theAnna Marie Dirks2003-04-293-6/+17 * Added padding/spacing to this page as specified by the HIG. PartiallyAnna Marie Dirks2003-04-294-17/+30 * (main): Add e_proxy_init()Ettore Perazzoli2003-04-292-0/+9 * (mail_session_forget_passwords): Forget allEttore Perazzoli2003-04-292-1/+6 * Don't convert the label charset from UTF-8 into the locale charset.Jeffrey Stedfast2003-04-292-11/+11 * Fixes #35814Rodney Dawes2003-04-294-4/+15 * Made toplevel container widgets set a border-width (including toplevelJeffrey Stedfast2003-04-296-2182/+2346 * If we fail to load the icon that gnome_vfs_get_icon() gave us, the defaultJeffrey Stedfast2003-04-282-2/+15 * correcting the order and the callouts filenamesIsmael Olea2003-04-281-7/+7 * Update Cezech translationMiloslav Trmac2003-04-282-242/+294 * add blurbs for 41843 and 41779Chris Toshok2003-04-281-0/+2 * [ fixes bug #41843] use e_card_simple_get_ecard_field instead ofChris Toshok2003-04-282-1/+9 * [ fixes bug #41779 ] we don't need to call gtk_widget_destroy on the oldChris Toshok2003-04-282-1/+8 * some Docbook tagginIsmael Olea2003-04-271-4/+4 * Updated portuguese translation.Duarte Loreto2003-04-272-310/+364 * Updated Swedish translation.Christian Rose2003-04-272-30/+82 * Fixes #41661Rodrigo Moya2003-04-279-12/+145 * Updated Norwegian translation. Added calendar/gui/dialogs/delete-error.cKjartan Maraas2003-04-263-5706/+864 * Updated Spanish translation by Francisco Javier FernandezPablo Gonzalo del Campo2003-04-262-342/+366 * filter order.Aaron Weber2003-04-261-0/+7 * Comment out the pinging code again since it's only being used byDan Winship2003-04-262-0/+12 * (async_open_cb): Added a missing unref of theEttore Perazzoli2003-04-262-7/+19 * A 24x24 version of Jimmac's stock edit icon.Anna Dirks2003-04-261-0/+0 * An icon from Jakub to use on Evo's edit buttons.Anna Dirks2003-04-251-0/+0 * toolbar is not strictly a guilabel: «GUILabel identifies text that appears a...Ismael Olea2003-04-251-1/+1 * Updated Swedish translation.Christian Rose2003-04-252-444/+473 * set the hpane default to 32000 so we never see a pane no matter the startJP Rosevear2003-04-252-1/+7 * Remove change that shouldn't have been committed.JP Rosevear2003-04-252-2/+2 * Fixes #37552JP Rosevear2003-04-2511-29/+187 * Dutch translation updated.Vincent van Adrighem2003-04-252-631/+438 * as below (update_active): as belowRadek Doulik2003-04-253-4/+11 * removed unused variable..Rodrigo Moya2003-04-252-1/+5 * Disable debugging printfs.Jeffrey Stedfast2003-04-252-3/+7 * Keep our buf ptr aligned to sizeof (char *). Should fix bug #41362.Jeffrey Stedfast2003-04-252-6/+15 * Try stat'ing the file before loading it with xmlParseFile() to avoidJeffrey Stedfast2003-04-251-4/+6 * Updated Czech translationMiloslav Trmac2003-04-242-117/+120 * Updated italian traslation.Marco Ciampa2003-04-242-945/+1046 * removed debug printfs.Not Zed2003-04-242-3/+4 * cast to remove warning. (construct): set a physiucal uri on the rootNot Zed2003-04-242-1/+11 * pass an exception to get_provider, to silence some warnings/get a validNot Zed2003-04-242-1/+9 * only free the host if it was set. removes a run-time warning.Not Zed2003-04-242-5/+8 * Fixed typoRodrigo Moya2003-04-241-1/+1 * Fixes #41641Hans Petter Jansson2003-04-243-19/+36 * Fixes #41671Rodrigo Moya2003-04-243-3/+16 * add more newsChris Toshok2003-04-241-1/+8 * [ fixes bug #37351 ] the row the signal is called with is already theChris Toshok2003-04-242-1/+7 * [ either mostly or entirely fixes #33708 ] new function, factor it out ofChris Toshok2003-04-242-20/+48 * *misc/e-multi-config-dialog.c : add appropriate padding and spacing to theAnna Dirks2003-04-242-2/+10 * Add appropriate padding to the Evolution Settings window. This is anotherAnna Marie Dirks2003-04-243-1/+14 * *glade/e-folder-list.glade : replaced buttons with stock buttons and addedAnna Marie Dirks2003-04-242-5/+12 * Updated Spanish translation by Francisco Javier FernandezPablo Gonzalo del Campo2003-04-242-710/+687 * *glade/e-folder-list.glade : replaced buttons with stock buttons and addedAnna Marie Dirks2003-04-242-98/+103 * fixed merge conflicts in ChangeLogJeffrey Stedfast2003-04-241-1/+0 * #if 0 out some code that parsed the namespaces since the results aren'tJeffrey Stedfast2003-04-242-1/+10 * Only add the Organization: header if it is non-empty. Fixes bug #41730.Jeffrey Stedfast2003-04-242-1/+6 * Dutch translation updated.Vincent van Adrighem2003-04-232-139/+155 * Update Czech translationMiloslav Trmac2003-04-232-96/+112 * Updated Italian translation.Marco Ciampa2003-04-232-863/+127 * oops, the service owns the url after we construct it.Not Zed2003-04-232-2/+5 * ** Should fix #41629, #41448, et al.Not Zed2003-04-2312-50/+206 * removed debug spew.Not Zed2003-04-233-6/+55 * Dutch translation updated.Vincent van Adrighem2003-04-232-2561/+653 * Fixes part of #41148, #41216 and #41235Rodrigo Moya2003-04-2312-31/+52 * Updated Portuguese translation.Duarte Loreto2003-04-232-152/+168 * Set the border width of the message dialog to 6. Also corrected theAnna Marie Dirks2003-04-232-3/+23 * use unicode ellipsis char for breaking lines. Use g_utf8_find_prev_charMike Kestner2003-04-231-9/+14 * Don't ever attach non-inlined text or message parts. Reverts a prior fix.Jeffrey Stedfast2003-04-232-7/+8 * Don't set seen_eof1 here anymore once we get a trust metric.Jeffrey Stedfast2003-04-232-16/+32 * Fixes #22444Rodrigo Moya2003-04-232-0/+10 * Fixes #22444Rodrigo Moya2003-04-238-74/+257 * Added appropriate spacing/padding to the rename dialogs. Fixes bugsAnna Marie Dirks2003-04-232-2/+9 * Fix KDE_APPLNK_DIR to not install to a diff prefix, and disable installingRodney Dawes2003-04-222-12/+9 * Update Czech translationMiloslav Trmac2003-04-222-85/+71 * added related argument, TRUE means that container of mime_part isRadek Doulik2003-04-222-4/+19 * this should never happen unless you're really trying, but don't crash ifChris Toshok2003-04-222-4/+14 * (create_folder_directory): Don't signal anEttore Perazzoli2003-04-222-6/+11 * Corrected border with for Delete Folder dialog. Fixes 41036.Anna Marie Dirks2003-04-222-3/+17 * Added appropriate border width to the folder selection dialog. FixesAnna Marie Dirks2003-04-222-4/+21 * Added spacing/padding to first-run dialog. Fixes 41242.Anna Marie Dirks2003-04-222-1/+7 * Misc HIG-related tweaks, mostly spacing and padding related. Fixes 41008.Anna Marie Dirks2003-04-223-6/+16 * Added appropriate spacing/padding to the default folder pages of theAnna Marie Dirks2003-04-222-189/+188 * Fixed padding/spacing/caps of the "Go Offline" dialog. Fixes 41225 andAnna Marie Dirks2003-04-222-5/+11 * Change the order of the ok/cancel buttons.Jeffrey Stedfast2003-04-222-6/+11 * Protect against a NULL strv result from parsing the language list string.Jeffrey Stedfast2003-04-222-5/+12 * use e_tree_table_adapter_node_get_next to determine how to draw siblingMike Kestner2003-04-213-4/+16 * Don't need "private" dir any moreDan Winship2003-04-212-1/+5 * [ fixes evolution bug #40464 ] use G_SIGNAL_TYPE_STATIC_SCOPE for theChris Toshok2003-04-211-2/+2 * add 40694 and 40954Chris Toshok2003-04-201-1/+14 * [ fixes bug #40954 ] guard against NULL bf->priv->summary (happens if theChris Toshok2003-04-202-7/+18 * [ fixes #40694 ] just grab focus if @activate == TRUE. we'll do allChris Toshok2003-04-202-9/+25 * [ fixes #40694 ] this can't hurt - set the frame to autoactivate so if byChris Toshok2003-04-203-3/+16 * removed 'heading' and 'message' labels.Rodrigo Moya2003-04-193-47/+9 * ** for #40989Not Zed2003-04-195-8/+117 * Add missing -DPREFIXRodney Dawes2003-04-192-0/+5 * if the layout splits into more than one line, shorten it to a single lineMike Kestner2003-04-191-3/+18 * add guarding for row indexing (Bug# 41497)JP Rosevear2003-04-191-5/+16 * add seriesid tag, maybe this will help building?Aaron Weber2003-04-191-0/+1 * Fixes for bug #41142.Jeffrey Stedfast2003-04-192-3/+11 * [ fixes #21499 ]Rodney Dawes2003-04-1927-13/+73 * (e_gtk_button_new_with_icon): Remove debuggingEttore Perazzoli2003-04-192-2/+5 * If the default_type is "foo/bar" and "foo" appears in the list butDan Winship2003-04-182-13/+18 * If the new folder's parent has unresolved children, async_open the parentDan Winship2003-04-18