changeset 17521:7f652ef12ed6

Remove the confusing 'OK' button from the auth dialog.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 26 May 2007 08:23:15 +0000
parents 464840043c66
children 9056a3c1d470
files finch/gntaccount.c finch/gntnotify.c
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntaccount.c	Sat May 26 08:08:04 2007 +0000
+++ b/finch/gntaccount.c	Sat May 26 08:23:15 2007 +0000
@@ -899,8 +899,10 @@
 		                (message != NULL ? ": " : "."),
 		                (message != NULL ? message  : ""));
 	if (!on_list) {
+		GntWidget *widget;
+		GList *iter;
 		auth_and_add *aa = g_new(auth_and_add, 1);
-		GntWidget *widget;
+
 		aa->auth_cb = (PurpleAccountRequestAuthorizationCb)auth_cb;
 		aa->deny_cb = (PurpleAccountRequestAuthorizationCb)deny_cb;
 		aa->data = user_data;
@@ -925,6 +927,13 @@
 		gnt_box_add_widget(GNT_BOX(uihandle), gnt_hline_new());
 
 		widget = finch_retrieve_user_info(account->gc, remote_user);
+		for (iter = GNT_BOX(widget)->list; iter; iter = iter->next) {
+			if (GNT_IS_BUTTON(iter->data)) {
+				gnt_widget_destroy(iter->data);
+				gnt_box_remove(GNT_BOX(widget), iter->data);
+				break;
+			}
+		}
 		gnt_box_set_toplevel(GNT_BOX(widget), FALSE);
 		gnt_screen_release(widget);
 		gnt_box_add_widget(GNT_BOX(uihandle), widget);
--- a/finch/gntnotify.c	Sat May 26 08:08:04 2007 +0000
+++ b/finch/gntnotify.c	Sat May 26 08:23:15 2007 +0000
@@ -69,6 +69,7 @@
 	gnt_box_set_title(GNT_BOX(window), title);
 	gnt_box_set_fill(GNT_BOX(window), FALSE);
 	gnt_box_set_alignment(GNT_BOX(window), GNT_ALIGN_MID);
+	gnt_box_set_pad(GNT_BOX(window), 0);
 
 	if (primary)
 		gnt_box_add_widget(GNT_BOX(window),