Mercurial > pidgin
comparison src/aim.c @ 991:3dbc2cd326e2
[gaim-migrate @ 1001]
check for getopt, and --disable-multi (which doesn't actually disable it, it just makes it inaccessible from the GUI)
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Fri, 13 Oct 2000 21:05:50 +0000 |
| parents | bd8eb3efe14e |
| children | 09dd5725945c |
comparison
equal
deleted
inserted
replaced
| 990:d2d6be9c85fe | 991:3dbc2cd326e2 |
|---|---|
| 43 #include <stdio.h> | 43 #include <stdio.h> |
| 44 #include <string.h> | 44 #include <string.h> |
| 45 #include <stdarg.h> | 45 #include <stdarg.h> |
| 46 #include <stdlib.h> | 46 #include <stdlib.h> |
| 47 #include <ctype.h> | 47 #include <ctype.h> |
| 48 #include "prpl.h" | |
| 48 #include "gaim.h" | 49 #include "gaim.h" |
| 49 #include "pixmaps/logo.xpm" | 50 #include "pixmaps/logo.xpm" |
| 50 #if HAVE_SIGNAL_H | 51 #if HAVE_SIGNAL_H |
| 51 #include <signal.h> | 52 #include <signal.h> |
| 52 #endif | 53 #endif |
| 222 { | 223 { |
| 223 GtkWidget *options; | 224 GtkWidget *options; |
| 224 #ifdef GAIM_PLUGINS | 225 #ifdef GAIM_PLUGINS |
| 225 GtkWidget *plugs; | 226 GtkWidget *plugs; |
| 226 #endif | 227 #endif |
| 228 #ifndef NO_MULTI | |
| 227 GtkWidget *accts; | 229 GtkWidget *accts; |
| 230 #endif | |
| 228 GtkWidget *signon; | 231 GtkWidget *signon; |
| 229 GtkWidget *cancel; | 232 GtkWidget *cancel; |
| 230 GtkWidget *reg; | 233 GtkWidget *reg; |
| 231 GtkWidget *bbox; | 234 GtkWidget *bbox; |
| 232 GtkWidget *hbox; | 235 GtkWidget *hbox; |
| 251 /* Disallow resizing */ | 254 /* Disallow resizing */ |
| 252 gtk_window_set_policy(GTK_WINDOW(mainwindow), FALSE, FALSE, TRUE); | 255 gtk_window_set_policy(GTK_WINDOW(mainwindow), FALSE, FALSE, TRUE); |
| 253 gtk_widget_realize(mainwindow); | 256 gtk_widget_realize(mainwindow); |
| 254 | 257 |
| 255 signon = gtk_button_new_with_label(_("Signon")); | 258 signon = gtk_button_new_with_label(_("Signon")); |
| 259 #ifndef NO_MULTI | |
| 256 accts = gtk_button_new_with_label(_("Accounts")); | 260 accts = gtk_button_new_with_label(_("Accounts")); |
| 261 #endif | |
| 257 cancel = gtk_button_new_with_label(_("Cancel")); | 262 cancel = gtk_button_new_with_label(_("Cancel")); |
| 258 reg = gtk_button_new_with_label(_("Register")); | 263 reg = gtk_button_new_with_label(_("Register")); |
| 259 options = gtk_button_new_with_label(_("Options")); | 264 options = gtk_button_new_with_label(_("Options")); |
| 260 #ifdef GAIM_PLUGINS | 265 #ifdef GAIM_PLUGINS |
| 261 plugs = gtk_button_new_with_label(_("Plugins")); | 266 plugs = gtk_button_new_with_label(_("Plugins")); |
| 267 gtk_combo_set_popdown_strings(GTK_COMBO(name), combo_user_names()); | 272 gtk_combo_set_popdown_strings(GTK_COMBO(name), combo_user_names()); |
| 268 | 273 |
| 269 if (display_options & OPT_DISP_COOL_LOOK) | 274 if (display_options & OPT_DISP_COOL_LOOK) |
| 270 { | 275 { |
| 271 gtk_button_set_relief(GTK_BUTTON(signon), GTK_RELIEF_NONE); | 276 gtk_button_set_relief(GTK_BUTTON(signon), GTK_RELIEF_NONE); |
| 277 #ifndef NO_MULTI | |
| 272 gtk_button_set_relief(GTK_BUTTON(accts), GTK_RELIEF_NONE); | 278 gtk_button_set_relief(GTK_BUTTON(accts), GTK_RELIEF_NONE); |
| 279 #endif | |
| 273 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); | 280 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); |
| 274 gtk_button_set_relief(GTK_BUTTON(reg), GTK_RELIEF_NONE); | 281 gtk_button_set_relief(GTK_BUTTON(reg), GTK_RELIEF_NONE); |
| 275 gtk_button_set_relief(GTK_BUTTON(options), GTK_RELIEF_NONE); | 282 gtk_button_set_relief(GTK_BUTTON(options), GTK_RELIEF_NONE); |
| 276 #ifdef GAIM_PLUGINS | 283 #ifdef GAIM_PLUGINS |
| 277 gtk_button_set_relief(GTK_BUTTON(plugs), GTK_RELIEF_NONE); | 284 gtk_button_set_relief(GTK_BUTTON(plugs), GTK_RELIEF_NONE); |
| 280 | 287 |
| 281 /* Make the buttons do stuff */ | 288 /* Make the buttons do stuff */ |
| 282 /* Clicking the button initiates a login */ | 289 /* Clicking the button initiates a login */ |
| 283 gtk_signal_connect(GTK_OBJECT(signon), "clicked", | 290 gtk_signal_connect(GTK_OBJECT(signon), "clicked", |
| 284 GTK_SIGNAL_FUNC(dologin), mainwindow); | 291 GTK_SIGNAL_FUNC(dologin), mainwindow); |
| 292 #ifndef NO_MULTI | |
| 285 gtk_signal_connect(GTK_OBJECT(accts), "clicked", | 293 gtk_signal_connect(GTK_OBJECT(accts), "clicked", |
| 286 GTK_SIGNAL_FUNC(account_editor), mainwindow); | 294 GTK_SIGNAL_FUNC(account_editor), mainwindow); |
| 295 #endif | |
| 287 gtk_signal_connect(GTK_OBJECT(cancel), "clicked", | 296 gtk_signal_connect(GTK_OBJECT(cancel), "clicked", |
| 288 GTK_SIGNAL_FUNC(cancel_logon), mainwindow); | 297 GTK_SIGNAL_FUNC(cancel_logon), mainwindow); |
| 289 /* Allow user to change prefs before logging in */ | 298 /* Allow user to change prefs before logging in */ |
| 290 gtk_signal_connect(GTK_OBJECT(options), "clicked", | 299 gtk_signal_connect(GTK_OBJECT(options), "clicked", |
| 291 GTK_SIGNAL_FUNC(show_prefs), NULL); | 300 GTK_SIGNAL_FUNC(show_prefs), NULL); |
| 313 bbox = gtk_hbox_new(TRUE, 10); | 322 bbox = gtk_hbox_new(TRUE, 10); |
| 314 hbox = gtk_hbox_new(TRUE, 10); | 323 hbox = gtk_hbox_new(TRUE, 10); |
| 315 sbox = gtk_vbox_new(TRUE, 5); | 324 sbox = gtk_vbox_new(TRUE, 5); |
| 316 | 325 |
| 317 gtk_box_pack_start(GTK_BOX(bbox), cancel, TRUE, TRUE, 0); | 326 gtk_box_pack_start(GTK_BOX(bbox), cancel, TRUE, TRUE, 0); |
| 327 #ifndef NO_MULTI | |
| 318 gtk_box_pack_start(GTK_BOX(bbox), accts, TRUE, TRUE, 0); | 328 gtk_box_pack_start(GTK_BOX(bbox), accts, TRUE, TRUE, 0); |
| 329 #endif | |
| 319 gtk_box_pack_start(GTK_BOX(bbox), signon, TRUE, TRUE, 0); | 330 gtk_box_pack_start(GTK_BOX(bbox), signon, TRUE, TRUE, 0); |
| 320 | 331 |
| 321 gtk_box_pack_start(GTK_BOX(hbox), reg, TRUE, TRUE, 0); | 332 gtk_box_pack_start(GTK_BOX(hbox), reg, TRUE, TRUE, 0); |
| 322 gtk_box_pack_start(GTK_BOX(hbox), options, TRUE, TRUE, 0); | 333 gtk_box_pack_start(GTK_BOX(hbox), options, TRUE, TRUE, 0); |
| 323 #ifdef GAIM_PLUGINS | 334 #ifdef GAIM_PLUGINS |
| 347 | 358 |
| 348 /* Attach the buttons at the bottom */ | 359 /* Attach the buttons at the bottom */ |
| 349 gtk_widget_show(signon); | 360 gtk_widget_show(signon); |
| 350 gtk_widget_show(cancel); | 361 gtk_widget_show(cancel); |
| 351 gtk_widget_show(reg); | 362 gtk_widget_show(reg); |
| 363 #ifndef NO_MULTI | |
| 352 gtk_widget_show(accts); | 364 gtk_widget_show(accts); |
| 365 #endif | |
| 353 gtk_widget_show(bbox); | 366 gtk_widget_show(bbox); |
| 354 gtk_widget_show(hbox); | 367 gtk_widget_show(hbox); |
| 355 gtk_widget_show(sbox); | 368 gtk_widget_show(sbox); |
| 356 gtk_table_attach(GTK_TABLE(table), sbox, 0,2,7,8,0,0, 5, 5); | 369 gtk_table_attach(GTK_TABLE(table), sbox, 0,2,7,8,0,0, 5, 5); |
| 357 | 370 |
