Re: Mail check every X minutes added
- From: Ragnar Henriksen <ragnar juniks org>
- To: David Pickens <dpickens iaesthetic com>
- cc: Balsa Mailinglist <balsa-list gnome org>
- Subject: Re: Mail check every X minutes added
- Date: Sun, 5 Dec 1999 11:31:17 +0100 (CET)
I added this to my source, didn't add it to the cvs. But by adding this
litle patch to your code, it would work.
Hope this was what you needed?
Wouldn't it look better if you moved the spin button up and beside the
checkbutton?
-Ragnar-
On Sat, 4 Dec 1999, David Pickens wrote:
> Hey all,
>
> I added a mail check every X minutes option this afternoon.
>
> Let me know what you think.
>
> BTW, I disable the Entry widget for minutes when the option isn't checked,
> but I'd also like to be able to 'gray' it out -- is there any way to do
> this? Also, I restrict the minutes to 2 digits, but the entry space
> remains large -- any way to narrow this?
>
> I'll add the options for the progress window soon.
>
> David
>
>
>
> --
> FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
> To unsubscribe: mail balsa-list-request@gnome.org with
> "unsubscribe" as the Subject.
>
--- balsa/src/pref-manager.c Sun Dec 5 10:40:28 1999
+++ balsa-new/src/pref-manager.c Sun Dec 5 11:22:20 1999
@@ -120,6 +120,9 @@
};
+void on_check_auto_mail (GtkWidget *checkbox,gpointer user_data);
+
+
/* notebook pages */
static GtkWidget *create_identity_page (void);
static GtkWidget *create_mailservers_page (void);
@@ -475,6 +478,7 @@
gtk_spin_button_set_value (GTK_SPIN_BUTTON (pui->check_mail_minutes),
(float) balsa_app.check_mail_timer );
+ gtk_widget_set_sensitive (pui->check_mail_minutes, GTK_TOGGLE_BUTTON(pui->check_mail_auto)->active);
/* arp */
gtk_entry_set_text (GTK_ENTRY (pui->quote_str), balsa_app.quote_str);
@@ -752,6 +756,8 @@
pui->check_mail_minutes = gtk_spin_button_new(adj, 0, 0);
gtk_box_pack_start( GTK_BOX(vbox), pui->check_mail_auto, FALSE, FALSE, 5);
+ gtk_signal_connect_object (GTK_OBJECT (pui->check_mail_auto), "toggled",
+ GTK_SIGNAL_FUNC (on_check_auto_mail), NULL);
hbox2 = gtk_hbox_new( FALSE, 0 );
label_minutes = gtk_label_new( "Minutes" );
gtk_box_pack_start( GTK_BOX(hbox2), pui->check_mail_minutes,
@@ -762,6 +768,12 @@
return vbox;
}
+void
+on_check_auto_mail (GtkWidget *checkbox,
+ gpointer user_data)
+{
+ gtk_widget_set_sensitive (pui->check_mail_minutes, GTK_TOGGLE_BUTTON(pui->check_mail_auto)->active);
+}
/*
* display notebook page
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]