[evolution-patches] Cleanups for evolution/addressbook (attached this time)



Cleanups:

- remove unused/unreachable code
- mark some bits static
etc

Cheers
Kjartan

? addressbook.error
Index: gui/component/addressbook-component.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-component.c,v
retrieving revision 1.140
diff -u -p -r1.140 addressbook-component.c
--- gui/component/addressbook-component.c	25 Nov 2005 13:09:37 -0000	1.140
+++ gui/component/addressbook-component.c	10 Dec 2005 14:12:11 -0000
@@ -281,11 +281,7 @@ impl_requestCreateItem (PortableServer_S
 			const CORBA_char *item_type_name,
 			CORBA_Environment *ev)
 {
-	AddressbookComponent *addressbook_component = ADDRESSBOOK_COMPONENT (bonobo_object_from_servant (servant));
-	AddressbookComponentPrivate *priv;
 	EBook *book;
-
-	priv = addressbook_component->priv;
 
 	if (!item_type_name ||
 	    (strcmp (item_type_name, "address_book") &&
Index: gui/component/addressbook-config.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-config.c,v
retrieving revision 1.105
diff -u -p -r1.105 addressbook-config.c
--- gui/component/addressbook-config.c	25 Nov 2005 20:32:35 -0000	1.105
+++ gui/component/addressbook-config.c	10 Dec 2005 14:12:11 -0000
@@ -622,7 +622,6 @@ eabc_general_offline(EConfig *ec, EConfi
 	AddressbookSourceDialog *sdialog = data;
 	GtkWidget *offline_setting;
 	const char *offline_sync;
-	int row;
 	gboolean is_local_book;
 	
 	is_local_book = g_str_has_prefix (e_source_group_peek_base_uri (sdialog->source_group), "file:");
@@ -630,7 +629,6 @@ eabc_general_offline(EConfig *ec, EConfi
 	if (old) 
 		return old;
 	else {
-		row = ((GtkTable*)parent)->nrows;
 		offline_setting = gtk_check_button_new_with_label (N_("Copy book content locally for offline operation"));
 		gtk_widget_show (offline_setting);
 		gtk_container_add (GTK_CONTAINER (parent), offline_setting);
Index: gui/component/addressbook-migrate.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-migrate.c,v
retrieving revision 1.39
diff -u -p -r1.39 addressbook-migrate.c
--- gui/component/addressbook-migrate.c	15 Jul 2005 06:47:34 -0000	1.39
+++ gui/component/addressbook-migrate.c	10 Dec 2005 14:12:11 -0000
@@ -215,30 +215,6 @@ get_source_name (ESourceGroup *group, co
 }
 
 static void
-add_to_notes (EContact *contact, EContactField field)
-{
-	const gchar *old_text;
-	const gchar *field_text;
-	gchar       *new_text;
-
-	old_text = e_contact_get_const (contact, E_CONTACT_NOTE);
-	if (old_text && strstr (old_text, e_contact_pretty_name (field)))
-		return;
-
-	field_text = e_contact_get_const (contact, field);
-	if (!field_text || !*field_text)
-		return;
-
-	new_text = g_strdup_printf ("%s%s%s: %s",
-				    old_text ? old_text : "",
-				    old_text && *old_text &&
-				    *(old_text + strlen (old_text) - 1) != '\n' ? "\n" : "",
-				    e_contact_pretty_name (field), field_text);
-	e_contact_set (contact, E_CONTACT_NOTE, new_text);
-	g_free (new_text);
-}
-
-static void
 migrate_contacts (MigrationContext *context, EBook *old_book, EBook *new_book)
 {
 	EBookQuery *query = e_book_query_any_field_contains ("");
Index: gui/component/addressbook-view.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-view.c,v
retrieving revision 1.41
diff -u -p -r1.41 addressbook-view.c
--- gui/component/addressbook-view.c	26 Nov 2005 01:32:18 -0000	1.41
+++ gui/component/addressbook-view.c	10 Dec 2005 14:12:12 -0000
@@ -169,15 +169,6 @@ view_contact_cb (BonoboUIComponent *uih,
 }
 
 static void
-search_cb (BonoboUIComponent *uih, void *user_data, const char *path)
-{
-	AddressbookView *view = (AddressbookView *) user_data;
-	EABView *v = get_current_view (view);
-	if (v)
-		gtk_widget_show(eab_search_dialog_new(v));
-}
-
-static void
 delete_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path)
 {
 	AddressbookView *view = (AddressbookView *) user_data;
Index: gui/contact-editor/e-contact-editor-address.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/contact-editor/e-contact-editor-address.c,v
retrieving revision 1.34
diff -u -p -r1.34 e-contact-editor-address.c
--- gui/contact-editor/e-contact-editor-address.c	26 Nov 2005 01:51:37 -0000	1.34
+++ gui/contact-editor/e-contact-editor-address.c	10 Dec 2005 14:12:12 -0000
@@ -397,20 +397,21 @@ fill_in_countries (GladeXML *gui)
 		static GList *country_list;
 		if (!sorted) {
 			int i;
-			char *locale;
 
 			for (i = 0; countries[i]; i++) {
 				countries[i] = _(countries[i]);
 			}
 
-			locale = setlocale (LC_COLLATE, NULL);
-			qsort (countries + 1, i - 1, sizeof (countries[0]), compare_func);
-			country_list = NULL;
-			for (i = 0; countries[i]; i++) {
-				country_list = g_list_prepend (country_list, countries[i]);
-			}
-			country_list = g_list_reverse (country_list);
-			sorted = TRUE;
+			if (setlocale (LC_COLLATE, NULL) != NULL) {
+				qsort (countries + 1, i - 1, sizeof (countries[0]), compare_func);
+				country_list = NULL;
+				for (i = 0; countries[i]; i++) {
+					country_list = g_list_prepend (country_list, countries[i]);
+				}
+				country_list = g_list_reverse (country_list);
+				sorted = TRUE;
+			} else
+				return;
 		}
 		gtk_combo_set_popdown_strings (combo, country_list);
 	}
Index: gui/contact-editor/e-contact-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/contact-editor/e-contact-editor.c,v
retrieving revision 1.245
diff -u -p -r1.245 e-contact-editor.c
--- gui/contact-editor/e-contact-editor.c	10 Dec 2005 09:52:23 -0000	1.245
+++ gui/contact-editor/e-contact-editor.c	10 Dec 2005 14:12:13 -0000
@@ -156,7 +156,7 @@ phones [] = {
 };
 
 /* Defaults from the table above */
-gint phones_default [] = { 1, 6, 9, 2, 7, 12, 10, 10 };
+static const gint phones_default [] = { 1, 6, 9, 2, 7, 12, 10, 10 };
 
 static EContactField addresses [] = {
 	E_CONTACT_ADDRESS_WORK,
@@ -170,7 +170,7 @@ static EContactField address_labels [] =
 	E_CONTACT_ADDRESS_LABEL_OTHER
 };
 
-static gchar *address_name [] = {
+static const gchar *address_name [] = {
 	"work",
 	"home",
 	"other"
@@ -191,7 +191,7 @@ im_service [] =
 };
 
 /* Defaults from the table above */
-gint im_service_default [] = { 0, 2, 4, 5 };
+static const gint im_service_default [] = { 0, 2, 4, 5 };
 
 static struct {
 	gchar *name;
@@ -205,7 +205,7 @@ common_location [] =
 };
 
 /* Default from the table above */
-gint email_default [] = { 0, 1, 2, 2 };
+static const gint email_default [] = { 0, 1, 2, 2 };
 
 #define STRING_IS_EMPTY(x)      (!(x) || !(*(x)))
 #define STRING_MAKE_NON_NULL(x) ((x) ? (x) : "")
@@ -439,7 +439,6 @@ file_as_get_style (EContactEditor *edito
 	EContactName *name = editor->name;
 	const gchar *company;
 	int i;
-	int style;
 
 	if (!(file_as && GTK_IS_ENTRY(file_as)))
 		return -1;
@@ -447,7 +446,6 @@ file_as_get_style (EContactEditor *edito
 	company = gtk_entry_get_text (GTK_ENTRY (company_w));
 	filestring = g_strdup (gtk_entry_get_text (file_as));
 
-	style = -1;
 	for (i = 0; i < 5; i++) {
 		trystring = name_to_style (name, company, i);
 		if (!strcmp(trystring, filestring)) {
@@ -1272,11 +1270,11 @@ static void
 sensitize_phone_types (EContactEditor *editor, GtkWidget *option_menu)
 {
 	GtkWidget *menu;
-	GList     *item_list, *l;
+	GList     *l;
 	gint       i;
 
 	menu = gtk_option_menu_get_menu (GTK_OPTION_MENU (option_menu));
-	l = item_list = gtk_container_get_children (GTK_CONTAINER (menu));
+	l = gtk_container_get_children (GTK_CONTAINER (menu));
 
 	for (i = 0; i < G_N_ELEMENTS (phones); i++) {
 		GtkWidget *widget;
@@ -1582,11 +1580,11 @@ static void
 sensitize_im_types (EContactEditor *editor, GtkWidget *option_menu)
 {
 	GtkWidget *menu;
-	GList     *item_list, *l;
+	GList     *l;
 	gint       i;
 
 	menu = gtk_option_menu_get_menu (GTK_OPTION_MENU (option_menu));
-	l = item_list = gtk_container_get_children (GTK_CONTAINER (menu));
+	l = gtk_container_get_children (GTK_CONTAINER (menu));
 
 	for (i = 0; i < G_N_ELEMENTS (im_service); i++) {
 		GtkWidget *widget;
@@ -2310,8 +2308,6 @@ init_simple (EContactEditor *editor)
 	gint       i;
 
 	for (i = 0; i < G_N_ELEMENTS (simple_field_map); i++) {
-		GtkWidget *widget;
-
 		widget = glade_xml_get_widget (editor->gui, simple_field_map [i].widget_name);
 		if (!widget)
 			continue;
@@ -2920,7 +2916,7 @@ e_contact_editor_close (EABEditor *edito
 	}
 }
 
-EContactField  non_string_fields [] = {
+static const EContactField  non_string_fields [] = {
 	E_CONTACT_FULL_NAME,
 	E_CONTACT_ADDRESS,
 	E_CONTACT_ADDRESS_HOME,
@@ -3598,6 +3594,7 @@ e_contact_editor_show (EABEditor *editor
 	gtk_widget_show (ce->app);
 }
 
+/* Is this declaration here so that libglade can reach this? */
 GtkWidget *
 e_contact_editor_create_date(gchar *name,
 			     gchar *string1, gchar *string2,
Index: gui/contact-list-editor/e-contact-list-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/contact-list-editor/e-contact-list-editor.c,v
retrieving revision 1.74
diff -u -p -r1.74 e-contact-list-editor.c
--- gui/contact-list-editor/e-contact-list-editor.c	26 Nov 2005 01:51:37 -0000	1.74
+++ gui/contact-list-editor/e-contact-list-editor.c	10 Dec 2005 14:12:13 -0000
@@ -1071,13 +1071,11 @@ fill_in_info(EContactListEditor *editor)
 		EContactPhoto *photo;
 		const char *file_as;
 		gboolean show_addresses = FALSE;
-		gboolean is_evolution_list = FALSE;
 		GList *email_list;
 		GList *iter;
 
 		file_as = e_contact_get_const (editor->contact, E_CONTACT_FILE_AS);
 		email_list = e_contact_get_attributes (editor->contact, E_CONTACT_EMAIL);
-		is_evolution_list = GPOINTER_TO_INT (e_contact_get (editor->contact, E_CONTACT_IS_LIST));
 		show_addresses = GPOINTER_TO_INT (e_contact_get (editor->contact, E_CONTACT_LIST_SHOW_ADDRESSES));
 
 		gtk_editable_delete_text (GTK_EDITABLE (editor->list_name_entry), 0, -1);
Index: gui/merging/eab-contact-compare.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/merging/eab-contact-compare.c,v
retrieving revision 1.12
diff -u -p -r1.12 eab-contact-compare.c
--- gui/merging/eab-contact-compare.c	30 Sep 2005 13:26:29 -0000	1.12
+++ gui/merging/eab-contact-compare.c	10 Dec 2005 14:12:13 -0000
@@ -84,30 +84,6 @@ static gchar *name_synonyms[][2] = {
 };
 
 static gboolean
-name_fragment_match (const gchar *a, const gchar *b, gboolean strict)
-{
-	gint len;
-
-	if (!(a && b && *a && *b))
-		return FALSE;
-
-	/* If we are in 'strict' mode, b must match the beginning of a.
-	   So "Robert", "Rob" would match, but "Robert", "Robbie" wouldn't.
-
-	   If strict is FALSE, it is sufficient for the strings to share
-	   some leading characters.  In this case, "Robert" and "Robbie"
-	   would match, as would "Dave" and "Dan". */
-	
-	if (strict) {
-		len = g_utf8_strlen (b, -1);
-	} else {
-		len = MIN (g_utf8_strlen (a, -1), g_utf8_strlen (b, -1));
-	}
-
-	return !e_utf8_casefold_collate_len (a, b, len);
-}
-
-static gboolean
 name_fragment_match_with_synonyms (const gchar *a, const gchar *b, gboolean strict)
 {
 	gint i;
@@ -321,7 +297,7 @@ eab_contact_compare_name (EContact *cont
 {
 	EContactName *a, *b;
 	gint matches=0, possible=0;
-	gboolean given_match = FALSE, additional_match = FALSE, family_match = FALSE;
+	gboolean family_match = FALSE;
 
 	g_return_val_if_fail (E_IS_CONTACT (contact1), EAB_CONTACT_MATCH_NOT_APPLICABLE);
 	g_return_val_if_fail (E_IS_CONTACT (contact2), EAB_CONTACT_MATCH_NOT_APPLICABLE);
@@ -339,7 +315,6 @@ eab_contact_compare_name (EContact *cont
 		++possible;
 		if (name_fragment_match_with_synonyms (a->given, b->given, FALSE /* both inputs are complete */)) {
 			++matches;
-			given_match = TRUE;
 		}
 	}
 
@@ -347,7 +322,6 @@ eab_contact_compare_name (EContact *cont
 		++possible;
 		if (name_fragment_match_with_synonyms (a->additional, b->additional, FALSE /* both inputs are complete */)) {
 			++matches;
-			additional_match = TRUE;
 		}
 	}
 
Index: gui/search/e-addressbook-search-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/search/e-addressbook-search-dialog.c,v
retrieving revision 1.32
diff -u -p -r1.32 e-addressbook-search-dialog.c
--- gui/search/e-addressbook-search-dialog.c	21 Dec 2004 15:38:27 -0000	1.32
+++ gui/search/e-addressbook-search-dialog.c	10 Dec 2005 14:12:13 -0000
@@ -182,9 +182,5 @@ eab_search_dialog_new (EABView *addr_vie
 static void
 eab_search_dialog_dispose (GObject *object)
 {
-	EABSearchDialog *view;
-
-	view = EAB_SEARCH_DIALOG (object);
-
 	G_OBJECT_CLASS(eab_search_dialog_parent_class)->dispose (object);
 }
Index: gui/widgets/e-addressbook-model.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-addressbook-model.c,v
retrieving revision 1.66
diff -u -p -r1.66 e-addressbook-model.c
--- gui/widgets/e-addressbook-model.c	23 Jun 2005 09:11:04 -0000	1.66
+++ gui/widgets/e-addressbook-model.c	10 Dec 2005 14:12:13 -0000
@@ -488,6 +488,7 @@ book_view_loaded (EBook *book, EBookStat
 static void
 get_view (EABModel *model)
 {
+	/* Should this be checked somehow? */
 	gboolean success;
 
 	if (model->book && model->query) {
Index: gui/widgets/e-addressbook-view.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-addressbook-view.c,v
retrieving revision 1.174
diff -u -p -r1.174 e-addressbook-view.c
--- gui/widgets/e-addressbook-view.c	26 Nov 2005 01:51:38 -0000	1.174
+++ gui/widgets/e-addressbook-view.c	10 Dec 2005 14:12:13 -0000
@@ -208,10 +208,8 @@ static void
 eab_view_class_init (EABViewClass *klass)
 {
 	GObjectClass *object_class;
-	GtkWidgetClass *widget_class;
 
 	object_class = G_OBJECT_CLASS(klass);
-	widget_class = GTK_WIDGET_CLASS(klass);
 
 	parent_class = gtk_type_class (PARENT_TYPE);
 
@@ -1908,7 +1906,7 @@ eab_view_delete_selection(EABView *view,
 		GList *ids = NULL;
 
 		for (l=list;l;l=g_list_next(l)) {
-			EContact *contact = l->data;
+			contact = l->data;
 
 			ids = g_list_prepend (ids, (char*)e_contact_get_const (contact, E_CONTACT_UID));
 		}
@@ -1924,7 +1922,7 @@ eab_view_delete_selection(EABView *view,
 	}
 	else {
 		for (l=list;l;l=g_list_next(l)) {
-			EContact *contact = l->data;
+			contact = l->data;
 			/* Remove the card. */
 			/* XXX no callback specified... ugh */
 			e_book_async_remove_contact (view->book,
Index: gui/widgets/e-addressbook-view.h
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-addressbook-view.h,v
retrieving revision 1.37
diff -u -p -r1.37 e-addressbook-view.h
--- gui/widgets/e-addressbook-view.h	21 Jul 2005 13:27:36 -0000	1.37
+++ gui/widgets/e-addressbook-view.h	10 Dec 2005 14:12:13 -0000
@@ -159,6 +159,6 @@ gboolean   eab_view_can_move_to_folder  
 
 struct _EABMenuTargetSelect *eab_view_get_menu_target (EABView *view, struct _EABMenu *menu);
 
-G_END_DECLS;
+G_END_DECLS
 
 #endif /* __EAB_VIEW_H__ */
Index: gui/widgets/e-minicard-label.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-minicard-label.c,v
retrieving revision 1.40
diff -u -p -r1.40 e-minicard-label.c
--- gui/widgets/e-minicard-label.c	23 Jun 2005 09:11:04 -0000	1.40
+++ gui/widgets/e-minicard-label.c	10 Dec 2005 14:12:14 -0000
@@ -336,10 +336,6 @@ e_minicard_label_realize (GnomeCanvasIte
 static void
 e_minicard_label_unrealize (GnomeCanvasItem *item)
 {
-	EMinicardLabel *e_minicard_label;
-
-	e_minicard_label = E_MINICARD_LABEL (item);
-
 	if (GNOME_CANVAS_ITEM_CLASS( parent_class )->unrealize)
 		(* GNOME_CANVAS_ITEM_CLASS( parent_class )->unrealize) (item);
 }
Index: gui/widgets/e-minicard.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/e-minicard.c,v
retrieving revision 1.126
diff -u -p -r1.126 e-minicard.c
--- gui/widgets/e-minicard.c	24 Aug 2005 03:06:51 -0000	1.126
+++ gui/widgets/e-minicard.c	10 Dec 2005 14:12:14 -0000
@@ -515,10 +515,6 @@ e_minicard_realize (GnomeCanvasItem *ite
 static void
 e_minicard_unrealize (GnomeCanvasItem *item)
 {
-	EMinicard *e_minicard;
-
-	e_minicard = E_MINICARD (item);
-
 	if (GNOME_CANVAS_ITEM_CLASS(parent_class)->unrealize)
 		(* GNOME_CANVAS_ITEM_CLASS(parent_class)->unrealize) (item);
 }
@@ -573,10 +569,8 @@ static gboolean
 e_minicard_event (GnomeCanvasItem *item, GdkEvent *event)
 {
 	EMinicard *e_minicard;
-	GtkWidget *canvas;
 	
 	e_minicard = E_MINICARD (item);
-	canvas = GTK_WIDGET (GNOME_CANVAS_ITEM (item)->canvas);
 
 	switch( event->type ) {
 	case GDK_FOCUS_CHANGE:
@@ -793,7 +787,7 @@ add_field (EMinicard *e_minicard, EConta
 			    	   NULL );
 
 
-#if notyet
+#ifdef notyet
 	g_object_set(E_MINICARD_LABEL(new_item)->field,
 		     "allow_newlines", e_card_simple_get_allow_newlines (e_minicard->contact, field),
 		     NULL);
@@ -895,8 +889,7 @@ remodel( EMinicard *e_minicard )
 				} else {
 					e_minicard_field_destroy(minicard_field);
 				}
-				list = g_list_remove_link(list, this_list);
-				g_list_free_1(this_list);
+				list = g_list_delete_link(list, this_list);
 				g_free(string);
 			} else {
 				char *string;
@@ -941,7 +934,7 @@ e_minicard_reflow( GnomeCanvasItem *item
 		
 		for(list = e_minicard->fields; list; list = g_list_next(list)) {
 			EMinicardField *field = E_MINICARD_FIELD(list->data);
-			GnomeCanvasItem *item = field->label;
+			item = field->label;
 			g_object_get (item,
 				      "height", &text_height,
 				      NULL);
Index: gui/widgets/eab-contact-display.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/eab-contact-display.c,v
retrieving revision 1.24
diff -u -p -r1.24 eab-contact-display.c
--- gui/widgets/eab-contact-display.c	28 Sep 2005 13:25:12 -0000	1.24
+++ gui/widgets/eab-contact-display.c	10 Dec 2005 14:12:14 -0000
@@ -194,7 +194,7 @@ accum_address (GString *gstr, EContact *
 	if (label) {
 		char *html = e_text_to_html (label, E_TEXT_TO_HTML_CONVERT_NL);
 
-#if mapping_works
+#ifdef mapping_works
 		g_string_append_printf (gstr, "<tr><td valign=\"top\" width=\"" IMAGE_COL_WIDTH "\"></td><td valign=\"top\" width=\"100\"><font color=" HEADER_COLOR ">%s:</font><br><a href=\"http://www.mapquest.com/\";>%s</a></td><td valign=\"top\">%s</td></tr>", html_label, _("(map)"), html);
 #else
 		g_string_append_printf (gstr, "<tr><td valign=\"top\" width=\"" IMAGE_COL_WIDTH "\"></td><td valign=\"top\" width=\"100\"><font color=" HEADER_COLOR ">%s:</font></td><td valign=\"top\">%s</td></tr>", html_label, html);
@@ -548,7 +548,7 @@ eab_contact_display_render_compact (EABC
 
 			for (l = email_list; l; l = l->next) {
 				if (l->data) {
-					char *html = e_text_to_html (l->data, 0);
+					html = e_text_to_html (l->data, 0);
 					gtk_html_stream_printf (html_stream, "%s, ", html);
 					g_free (html);
 				}
Index: gui/widgets/eab-gui-util.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/eab-gui-util.c,v
retrieving revision 1.46
diff -u -p -r1.46 eab-gui-util.c
--- gui/widgets/eab-gui-util.c	25 Nov 2005 14:56:22 -0000	1.46
+++ gui/widgets/eab-gui-util.c	10 Dec 2005 14:12:14 -0000
@@ -457,7 +457,7 @@ eab_select_source (const gchar *title, c
 					      GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
 					      NULL);
 	gtk_window_set_default_size (GTK_WINDOW (dialog), 200, 350);
-
+	/* This is assigned here but never referenced? */
 	cancel_button = gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
 	ok_button = gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_OK, GTK_RESPONSE_ACCEPT);
 	gtk_widget_set_sensitive (ok_button, FALSE);
Index: gui/widgets/eab-popup-control.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/widgets/eab-popup-control.c,v
retrieving revision 1.14
diff -u -p -r1.14 eab-popup-control.c
--- gui/widgets/eab-popup-control.c	24 Aug 2005 03:06:51 -0000	1.14
+++ gui/widgets/eab-popup-control.c	10 Dec 2005 14:12:14 -0000
@@ -676,7 +676,7 @@ eab_popup_control_cleanup (EABPopupContr
 	}
 
 	if (pop->query_tag) {
-#if notyet
+#ifdef notyet
 		e_book_simple_query_cancel (pop->book, pop->query_tag);
 #endif
 		pop->query_tag = 0;
@@ -1087,7 +1087,7 @@ start_query (EBook *book, EBookStatus st
 		return;
 	}
 	
-#if notyet
+#ifdef notyet
 	if (pop->query_tag)
 		e_book_simple_query_cancel (book, pop->query_tag);
 #endif
Index: printing/e-contact-print-style-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/printing/e-contact-print-style-editor.c,v
retrieving revision 1.8
diff -u -p -r1.8 e-contact-print-style-editor.c
--- printing/e-contact-print-style-editor.c	26 Nov 2005 01:51:39 -0000	1.8
+++ printing/e-contact-print-style-editor.c	10 Dec 2005 14:12:14 -0000
@@ -66,10 +66,8 @@ static void
 e_contact_print_style_editor_class_init (EContactPrintStyleEditorClass *klass)
 {
   GtkObjectClass *object_class;
-  GtkVBoxClass *vbox_class;
 
   object_class = (GtkObjectClass*) klass;
-  vbox_class = (GtkVBoxClass *) klass;
 
   parent_class = gtk_type_class (gtk_vbox_get_type ());
   
@@ -137,10 +135,6 @@ e_contact_print_style_editor_new (char *
 static void
 e_contact_print_style_editor_set_arg (GtkObject *o, GtkArg *arg, guint arg_id)
 {
-	EContactPrintStyleEditor *e_contact_print_style_editor;
-
-	e_contact_print_style_editor = E_CONTACT_PRINT_STYLE_EDITOR (o);
-	
 	switch (arg_id){
 	default:
 		break;
@@ -150,10 +144,6 @@ e_contact_print_style_editor_set_arg (Gt
 static void
 e_contact_print_style_editor_get_arg (GtkObject *object, GtkArg *arg, guint arg_id)
 {
-	EContactPrintStyleEditor *e_contact_print_style_editor;
-
-	e_contact_print_style_editor = E_CONTACT_PRINT_STYLE_EDITOR (object);
-
 	switch (arg_id) {
 	default:
 	  arg->type = GTK_TYPE_INVALID;
Index: util/eab-book-util.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/util/eab-book-util.c,v
retrieving revision 1.12
diff -u -p -r1.12 eab-book-util.c
--- util/eab-book-util.c	15 Jul 2005 06:47:34 -0000	1.12
+++ util/eab-book-util.c	10 Dec 2005 14:12:14 -0000
@@ -345,7 +345,7 @@ eab_book_and_contact_list_to_string (EBo
 	return s1;
 }
 
-#if notyet
+#ifdef notyet
 /*
  *  Convenience routine to check for addresses in the local address book.
  */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]