Re: [evolution-patches] Send/Recv Dialog Cleanups



Here is a new patch that removes both separators, after talking to Anna
about the dialog a bit.

-- dobey

Il lun, 2003-09-22 alle 17:15, Rodney Dawes ha scritto:
> The following patch cleans up a couple things in the send/recv dialog in
> the mailer. It removes the GtkDialog separator, fixes the spacing a bit,
> so that the content all lines up nicely, and only draws the send/recv
> horizontal separator, if there are widgets being drawn in the send part.
> It also makes the dialog resizable, to work around an apparent GTK+ bug,
> which makes the dialog border be drawn as if it were a normal GtkWindow.
> 
> -- dobey

Index: mail-send-recv.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-send-recv.c,v
retrieving revision 1.73.4.2
diff -u -r1.73.4.2 mail-send-recv.c
--- mail-send-recv.c	10 Sep 2003 01:25:17 -0000	1.73.4.2
+++ mail-send-recv.c	24 Sep 2003 19:18:22 -0000
@@ -305,11 +305,10 @@
 	EAccount *account;
 	EIterator *iter;
 	
-	gd = (GtkDialog *)send_recv_dialogue = gtk_dialog_new_with_buttons(_("Send & Receive Mail"), NULL, 0, NULL);
+	gd = (GtkDialog *)send_recv_dialogue = gtk_dialog_new_with_buttons(_("Send & Receive Mail"), NULL, GTK_DIALOG_NO_SEPARATOR, NULL);
 	stop = (GtkButton *)e_gtk_button_new_with_icon(_("Cancel _All"), GTK_STOCK_CANCEL);
 	gtk_widget_show((GtkWidget *)stop);
 	gtk_dialog_add_action_widget(gd, (GtkWidget *)stop, GTK_RESPONSE_CANCEL);
-	g_object_set(gd, "resizable", FALSE, NULL);
 	gnome_window_icon_set_from_file (GTK_WINDOW (gd), EVOLUTION_ICONSDIR "/send-receive.xpm");
 	
 	num_sources = 0;
@@ -327,7 +326,7 @@
 	g_object_unref (iter);
 	
 	table = (GtkTable *) gtk_table_new (num_sources, 4, FALSE);
-	gtk_container_set_border_width ((GtkContainer *) table, 6);
+	gtk_container_set_border_width ((GtkContainer *) table, 3);
 	
        	gtk_box_pack_start (GTK_BOX (gd->vbox), GTK_WIDGET (table), TRUE, TRUE, 0);
 	
@@ -412,11 +411,6 @@
 	}
 	
 	g_object_unref (iter);
-	
-	line = (GtkHSeparator *)gtk_hseparator_new ();
-	gtk_table_attach (table, GTK_WIDGET (line), 0, 4, row, row+1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 1, 3);
-	row++;
-	gtk_widget_show_all (GTK_WIDGET (table));
 	
 	if (outbox && destination) {
 		info = g_hash_table_lookup (data->active, SEND_URI_KEY);

Attachment: signature.asc
Description: Questa parte del messaggio =?ISO-8859-1?Q?=E8?= firmata



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