pan-users
[Top][All Lists]
Advanced

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

[Pan-users] [PATCH] Make 'get new headers' the default in the Get Header


From: walt
Subject: [Pan-users] [PATCH] Make 'get new headers' the default in the Get Headers dialog
Date: Tue, 9 Oct 2007 00:40:35 +0000 (UTC)

I got tired of 'get N days headers' being the default choice, so I
changed it to 'get new headers' which is what I want 99% of the time.

This patch Works For Me :o)  Pan doesn't do attachments, so I just turned
off line-wrap for this post -- I hope it arrives whitespace-intact.

--- pan/gui/dl-headers-ui.cc.orig       2007-10-08 16:02:31.000000000 -0700
+++ pan/gui/dl-headers-ui.cc    2007-10-08 17:24:37.000000000 -0700
@@ -132,7 +132,12 @@
     GtkWidget *w, *x;
     GtkAdjustment * adj;
     int row = 0;
-    state->n_days_rb         = w = gtk_radio_button_new_with_mnemonic (NULL, 
_("Get the last N _days' headers: "));
+
+    state->new_headers_rb = w = gtk_radio_button_new_with_mnemonic (NULL, 
_("Get _new headers"));
+    gtk_button_set_alignment (GTK_BUTTON(w), 0.5, 0.0);
+    gtk_table_attach_defaults (GTK_TABLE(t), w, 0, 1, row, row+1);
+    ++row;
+    state->n_days_rb         = w = 
gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON(w), _("Get the 
last N _days' headers: "));
     gtk_button_set_alignment (GTK_BUTTON(w), 0.5, 0.0);
     gtk_table_attach_defaults (GTK_TABLE(t), w, 0, 1, row, row+1);
     adj = GTK_ADJUSTMENT(gtk_adjustment_new (n_days, 1, INT_MAX, 1, 1, 1));
@@ -140,10 +145,6 @@
     g_signal_connect (x, "focus_in_event", GTK_SIGNAL_FUNC(spin_tickled_cb), 
state->n_days_rb);
     gtk_table_attach_defaults (GTK_TABLE(t), x, 1, 2, row, row+1);
     ++row;
-    state->new_headers_rb = w = gtk_radio_button_new_with_mnemonic_from_widget 
(GTK_RADIO_BUTTON(w), _("Get _new headers"));
-    gtk_button_set_alignment (GTK_BUTTON(w), 0.5, 0.0);
-    gtk_table_attach_defaults (GTK_TABLE(t), w, 0, 1, row, row+1);
-    ++row;
     state->all_headers_rb = w = gtk_radio_button_new_with_mnemonic_from_widget 
(GTK_RADIO_BUTTON(w), _("Get _all headers"));
     gtk_button_set_alignment (GTK_BUTTON(w), 0.5, 0.0);
     gtk_table_attach_defaults (GTK_TABLE(t), w, 0, 1, row, row+1);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]