[Commits] address_keeper_prefs.c 1.1.2.6 1.1.2.7

colin at claws-mail.org colin at claws-mail.org
Sun Apr 1 20:47:33 CEST 2012


Update of /home/claws-mail/plugins/address_keeper/src
In directory srv:/tmp/cvs-serv14811/src

Modified Files:
      Tag: gtk2
	address_keeper_prefs.c 
Log Message:
2012-04-01 [colin]	1.0.5cvs4

	* src/address_keeper_prefs.c
		Disable unsupported sutff with new AB

Index: address_keeper_prefs.c
===================================================================
RCS file: /home/claws-mail/plugins/address_keeper/src/Attic/address_keeper_prefs.c,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -d -r1.1.2.6 -r1.1.2.7
--- address_keeper_prefs.c	6 Jan 2012 14:07:18 -0000	1.1.2.6
+++ address_keeper_prefs.c	1 Apr 2012 18:47:31 -0000	1.1.2.7
@@ -57,6 +57,7 @@
 	{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
 };
 
+#ifndef USE_NEW_ADDRBOOK
 static void select_addressbook_clicked_cb(GtkWidget *widget, gpointer data) {
 	const gchar *folderpath = NULL;
 	gchar *new_path = NULL;
@@ -68,6 +69,7 @@
 		g_free(new_path);
 	}
 }
+#endif
 
 static void addkeeper_prefs_create_widget_func(PrefsPage * _page,
 					       GtkWindow * window,
@@ -98,9 +100,13 @@
 
 	button = gtk_button_new_with_label(_("Select..."));
 	gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
+#ifndef USE_NEW_ADDRBOOK
 	g_signal_connect(G_OBJECT (button), "clicked",
 			 G_CALLBACK (select_addressbook_clicked_cb),
 			 entry);
+#else
+	gtk_widget_set_sensitive(button, FALSE);
+#endif
 	gtk_widget_show(button);
 	gtk_widget_show(hbox);
 	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);



More information about the Commits mailing list