Mercurial > pidgin
comparison src/prefs.c @ 423:0d4e80bdb96b
[gaim-migrate @ 433]
No more --enable-oscar option. From now on, it's a toggle in the preferences.
PLEASE DO NOT USE OSCAR, even though it's very easy to.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 21 Jun 2000 19:33:58 +0000 |
parents | a330017b3aa4 |
children | 7d5f91c1ff20 |
comparison
equal
deleted
inserted
replaced
422:7cd05539952d | 423:0d4e80bdb96b |
---|---|
210 g_snprintf(web_command, sizeof(web_command), "%s", gtk_entry_get_text(GTK_ENTRY(pd->browser_entry))); | 210 g_snprintf(web_command, sizeof(web_command), "%s", gtk_entry_get_text(GTK_ENTRY(pd->browser_entry))); |
211 save_prefs(); | 211 save_prefs(); |
212 return TRUE; | 212 return TRUE; |
213 } | 213 } |
214 | 214 |
215 #ifndef USE_OSCAR | |
216 static int | 215 static int |
217 connection_key_pressed(GtkWidget *w, GdkEvent *event, void *dummy) | 216 connection_key_pressed(GtkWidget *w, GdkEvent *event, void *dummy) |
218 { | 217 { |
219 g_snprintf(aim_host, sizeof(aim_host), "%s", gtk_entry_get_text(GTK_ENTRY(pd->aim_host_entry))); | 218 g_snprintf(aim_host, sizeof(aim_host), "%s", gtk_entry_get_text(GTK_ENTRY(pd->aim_host_entry))); |
220 sscanf(gtk_entry_get_text(GTK_ENTRY(pd->aim_port_entry)), "%d", &aim_port); | 219 sscanf(gtk_entry_get_text(GTK_ENTRY(pd->aim_port_entry)), "%d", &aim_port); |
226 g_snprintf(login_host, sizeof(login_host), "%s", gtk_entry_get_text(GTK_ENTRY(pd->login_host_entry))); | 225 g_snprintf(login_host, sizeof(login_host), "%s", gtk_entry_get_text(GTK_ENTRY(pd->login_host_entry))); |
227 sscanf(gtk_entry_get_text(GTK_ENTRY(pd->login_port_entry)), "%d", &login_port); | 226 sscanf(gtk_entry_get_text(GTK_ENTRY(pd->login_port_entry)), "%d", &login_port); |
228 save_prefs(); | 227 save_prefs(); |
229 return TRUE; | 228 return TRUE; |
230 } | 229 } |
231 #endif | |
232 | 230 |
233 | 231 |
234 | 232 |
235 | 233 |
236 static void set_browser(GtkWidget *w, int *data) | 234 static void set_browser(GtkWidget *w, int *data) |
324 /* GtkWidget *debug_page; */ | 322 /* GtkWidget *debug_page; */ |
325 GtkWidget *general_page; | 323 GtkWidget *general_page; |
326 GtkWidget *appearance_page; | 324 GtkWidget *appearance_page; |
327 GtkWidget *chat_page; | 325 GtkWidget *chat_page; |
328 GtkWidget *browser_page; | 326 GtkWidget *browser_page; |
329 #ifndef USE_OSCAR /* sorry, since we don't control the comm we can't set | |
330 the connection */ | |
331 GtkWidget *connection_page; | 327 GtkWidget *connection_page; |
332 GtkWidget *connectopt; | 328 GtkWidget *connectopt; |
333 GtkWidget *hbox; | 329 GtkWidget *hbox; |
334 GtkWidget *hbox2; | 330 GtkWidget *hbox2; |
335 #endif | |
336 #ifdef USE_APPLET | 331 #ifdef USE_APPLET |
337 GtkWidget *applet_page; | 332 GtkWidget *applet_page; |
338 GtkWidget *appletbox; | 333 GtkWidget *appletbox; |
339 #endif | 334 #endif |
340 GtkWidget *label; | 335 GtkWidget *label; |
454 #endif | 449 #endif |
455 | 450 |
456 | 451 |
457 /* Connection */ | 452 /* Connection */ |
458 | 453 |
459 #ifndef USE_OSCAR | |
460 connection_page = gtk_vbox_new(FALSE, 0); | 454 connection_page = gtk_vbox_new(FALSE, 0); |
461 label = gtk_label_new(_("Connection")); | 455 label = gtk_label_new(_("Connection")); |
462 gtk_widget_show(label); | 456 gtk_widget_show(label); |
463 gtk_notebook_append_page(GTK_NOTEBOOK(notebook), connection_page, label); | 457 gtk_notebook_append_page(GTK_NOTEBOOK(notebook), connection_page, label); |
464 | 458 |
459 gaim_button(_("Use Oscar Protocol (experimental; only takes effect before signon)"), &general_options, OPT_GEN_USE_OSCAR, connection_page); | |
460 label = gtk_label_new(_("The following options do not apply if you use Oscar.")); | |
461 gtk_box_pack_start(GTK_BOX(connection_page), label, FALSE, FALSE, 10); | |
462 gtk_widget_show(label); | |
465 hbox = gtk_hbox_new(FALSE, 0); | 463 hbox = gtk_hbox_new(FALSE, 0); |
466 label = gtk_label_new(_("TOC Host:")); | 464 label = gtk_label_new(_("TOC Host:")); |
467 gtk_widget_show(label); | 465 gtk_widget_show(label); |
468 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 5); | 466 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 5); |
469 pd->aim_host_entry = gtk_entry_new(); | 467 pd->aim_host_entry = gtk_entry_new(); |
583 gtk_signal_connect(GTK_OBJECT(pd->login_port_entry), "focus_out_event", GTK_SIGNAL_FUNC(connection_key_pressed), NULL); | 581 gtk_signal_connect(GTK_OBJECT(pd->login_port_entry), "focus_out_event", GTK_SIGNAL_FUNC(connection_key_pressed), NULL); |
584 gtk_signal_connect(GTK_OBJECT(pd->proxy_host_entry), "focus_out_event", GTK_SIGNAL_FUNC(connection_key_pressed), NULL); | 582 gtk_signal_connect(GTK_OBJECT(pd->proxy_host_entry), "focus_out_event", GTK_SIGNAL_FUNC(connection_key_pressed), NULL); |
585 gtk_signal_connect(GTK_OBJECT(pd->proxy_port_entry), "focus_out_event", GTK_SIGNAL_FUNC(connection_key_pressed), NULL); | 583 gtk_signal_connect(GTK_OBJECT(pd->proxy_port_entry), "focus_out_event", GTK_SIGNAL_FUNC(connection_key_pressed), NULL); |
586 | 584 |
587 | 585 |
588 #endif /* USE_OSCAR */ | |
589 | |
590 /* Away */ | 586 /* Away */ |
591 | 587 |
592 a = awaymessage; | 588 a = awaymessage; |
593 pd->cur_message = NULL; | 589 pd->cur_message = NULL; |
594 pd->nwbutton = NULL; | 590 pd->nwbutton = NULL; |