0.8.8claws31
authorChristoph Hohmann <reboot@gmx.ch>
Tue, 31 Dec 2002 15:46:52 +0000 (15:46 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Tue, 31 Dec 2002 15:46:52 +0000 (15:46 +0000)
* src/plugins/spamassassin/spamassassin_gtk.c
        enable folder select button

ChangeLog.claws
configure.in
src/plugins/spamassassin/spamassassin_gtk.c

index dedbbb70010ace9fd8e5c84410ed3e21b27827f5..a580f5ae4dc82241f8966c18a37c622039b4d9ed 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-31 [christoph] 0.8.8claws31
+
+       * src/plugins/spamassassin/spamassassin_gtk.c
+               enable folder select button
+
 2002-12-31 [christoph] 0.8.8claws30
 
        * src/mainwindow.c
index aa7d3347ceed816ec520e74051c55c1e2671f3e2..3f52000b0ad03f09220237dbbd68d5ca46ac76cf 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws30
+EXTRA_VERSION=claws31
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index d78a7abaca15d24d788c02d71847ffaf0f077d40..534bec0fdfd50b27a1e278b923409cba18f5cb3a 100644 (file)
@@ -30,7 +30,9 @@
 #include "plugin.h"
 #include "common/utils.h"
 #include "prefs.h"
+#include "folder.h"
 #include "prefswindow.h"
+#include "foldersel.h"
 #include "spamassassin.h"
 
 struct SpamAssassinPage
@@ -45,6 +47,21 @@ struct SpamAssassinPage
        GtkWidget *save_folder;
 };
 
+static void foldersel_cb(GtkWidget *widget, gpointer data)
+{
+       struct SpamAssassinPage *page = (struct SpamAssassinPage *) data;
+       FolderItem *item;
+       gchar *item_id;
+       gint newpos = 0;
+       
+       item = foldersel_folder_sel(NULL, FOLDER_SEL_MOVE, NULL);
+       if (item && (item_id = folder_item_get_identifier(item)) != NULL) {
+               gtk_editable_delete_text(GTK_EDITABLE(page->save_folder), 0, -1);
+               gtk_editable_insert_text(GTK_EDITABLE(page->save_folder), item_id, strlen(item_id), &newpos);
+               g_free(item_id);
+       }
+}
+
 static void spamassassin_create_widget_func(PrefsPage * _page)
 {
        struct SpamAssassinPage *page = (struct SpamAssassinPage *) _page;
@@ -72,7 +89,6 @@ static void spamassassin_create_widget_func(PrefsPage * _page)
 
        table1 = gtk_table_new(6, 3, FALSE);
        gtk_widget_show(table1);
-       gtk_container_set_border_width(GTK_CONTAINER(table1), 8);
        gtk_table_set_row_spacings(GTK_TABLE(table1), 4);
        gtk_table_set_col_spacings(GTK_TABLE(table1), 8);
 
@@ -183,8 +199,6 @@ static void spamassassin_create_widget_func(PrefsPage * _page)
        gtk_misc_set_alignment(GTK_MISC(label11), 0, 0.5);
        /* --------------------------------------------------------- */
 
-       gtk_widget_set_sensitive(button4, FALSE);
-
        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(enable), spamassassin_enable);
        gtk_entry_set_text(GTK_ENTRY(hostname), spamassassin_hostname);
        gtk_spin_button_set_value(GTK_SPIN_BUTTON(port), (float) spamassassin_port);
@@ -200,6 +214,8 @@ static void spamassassin_create_widget_func(PrefsPage * _page)
        page->save_folder = save_folder;
 
        page->page.widget = table1;
+
+       gtk_signal_connect(GTK_OBJECT(button4), "released", GTK_SIGNAL_FUNC(foldersel_cb), page);
 }
 
 static void spamassassin_destroy_widget_func(PrefsPage *_page)