changeset 4291:7d3c552c4a89

[gaim-migrate @ 4544] I think this could be a neat little trick. Usability experts will probably shudder at inconsistant UI, though---so let's keep it undocumented ;) Middle click the "Sign On" button on the login window to auto-login. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 11 Jan 2003 08:22:26 +0000
parents 8406c518b879
children 78a3d2caf84c
files src/aim.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/aim.c	Sat Jan 11 06:53:35 2003 +0000
+++ b/src/aim.c	Sat Jan 11 08:22:26 2003 +0000
@@ -154,6 +154,14 @@
 	}
 }
 
+static gboolean domiddleclick(GtkWidget *w, GdkEventButton *event, gpointer null)
+{
+	if (event->button != 2)
+		return FALSE;
+
+	auto_login();
+	return TRUE;
+}
 
 static void dologin(GtkWidget *widget, GtkWidget *w)
 {
@@ -358,6 +366,7 @@
 	gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
 	g_signal_connect(G_OBJECT(button), "clicked",
 					 G_CALLBACK(dologin), mainwindow);
+	g_signal_connect(G_OBJECT(button), "button-press-event", G_CALLBACK(domiddleclick), NULL);
 	gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
 
 #ifdef _WIN32