Mercurial > pidgin.yaz
comparison src/aim.c @ 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 | 971684503905 |
children | 5978e3d53f29 |
comparison
equal
deleted
inserted
replaced
4290:8406c518b879 | 4291:7d3c552c4a89 |
---|---|
152 logins_not_muted = 0; | 152 logins_not_muted = 0; |
153 snd_tmout = g_timeout_add(10000, sound_timeout, NULL); | 153 snd_tmout = g_timeout_add(10000, sound_timeout, NULL); |
154 } | 154 } |
155 } | 155 } |
156 | 156 |
157 static gboolean domiddleclick(GtkWidget *w, GdkEventButton *event, gpointer null) | |
158 { | |
159 if (event->button != 2) | |
160 return FALSE; | |
161 | |
162 auto_login(); | |
163 return TRUE; | |
164 } | |
157 | 165 |
158 static void dologin(GtkWidget *widget, GtkWidget *w) | 166 static void dologin(GtkWidget *widget, GtkWidget *w) |
159 { | 167 { |
160 struct aim_user *u; | 168 struct aim_user *u; |
161 const char *username = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(name)->entry)); | 169 const char *username = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(name)->entry)); |
356 | 364 |
357 button = gaim_pixbuf_button("Sign On", "signon.png", GAIM_BUTTON_VERTICAL); | 365 button = gaim_pixbuf_button("Sign On", "signon.png", GAIM_BUTTON_VERTICAL); |
358 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | 366 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); |
359 g_signal_connect(G_OBJECT(button), "clicked", | 367 g_signal_connect(G_OBJECT(button), "clicked", |
360 G_CALLBACK(dologin), mainwindow); | 368 G_CALLBACK(dologin), mainwindow); |
369 g_signal_connect(G_OBJECT(button), "button-press-event", G_CALLBACK(domiddleclick), NULL); | |
361 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 370 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
362 | 371 |
363 #ifdef _WIN32 | 372 #ifdef _WIN32 |
364 /* Register newly created window with systray module */ | 373 /* Register newly created window with systray module */ |
365 wgaim_created_loginwin(GTK_WIDGET(mainwindow)); | 374 wgaim_created_loginwin(GTK_WIDGET(mainwindow)); |