Mercurial > pidgin
comparison src/gtkpounce.c @ 11243:a511b77a368b
[gaim-migrate @ 13408]
sf patch #1246384, from shiyee
"This patch globally defines
spacings and boreders according to the Gnome Human
Interfaces Guidelines, and uses those defines where
appropriate. No visual changes are made, but the the
intention is that the defines should help promote
uniformness."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 12 Aug 2005 23:53:28 +0000 |
parents | 096020ae09a9 |
children | 17142948653e |
comparison
equal
deleted
inserted
replaced
11242:01c06e7ae1f6 | 11243:a511b77a368b |
---|---|
388 gtk_window_set_resizable(GTK_WINDOW(window), FALSE); | 388 gtk_window_set_resizable(GTK_WINDOW(window), FALSE); |
389 gtk_window_set_title(GTK_WINDOW(window), | 389 gtk_window_set_title(GTK_WINDOW(window), |
390 (cur_pounce == NULL | 390 (cur_pounce == NULL |
391 ? _("New Buddy Pounce") : _("Edit Buddy Pounce"))); | 391 ? _("New Buddy Pounce") : _("Edit Buddy Pounce"))); |
392 | 392 |
393 gtk_container_set_border_width(GTK_CONTAINER(window), 12); | 393 gtk_container_set_border_width(GTK_CONTAINER(window), GAIM_HIG_BORDER); |
394 | 394 |
395 g_signal_connect(G_OBJECT(window), "delete_event", | 395 g_signal_connect(G_OBJECT(window), "delete_event", |
396 G_CALLBACK(delete_win_cb), dialog); | 396 G_CALLBACK(delete_win_cb), dialog); |
397 | 397 |
398 /* Create the parent vbox for everything. */ | 398 /* Create the parent vbox for everything. */ |
399 vbox1 = gtk_vbox_new(FALSE, 12); | 399 vbox1 = gtk_vbox_new(FALSE, GAIM_HIG_BORDER); |
400 gtk_container_add(GTK_CONTAINER(window), vbox1); | 400 gtk_container_add(GTK_CONTAINER(window), vbox1); |
401 gtk_widget_show(vbox1); | 401 gtk_widget_show(vbox1); |
402 | 402 |
403 /* Create the vbox that will contain all the prefs stuff. */ | 403 /* Create the vbox that will contain all the prefs stuff. */ |
404 vbox2 = gtk_vbox_new(FALSE, 18); | 404 vbox2 = gtk_vbox_new(FALSE, GAIM_HIG_BOX_SPACE); |
405 gtk_box_pack_start(GTK_BOX(vbox1), vbox2, TRUE, TRUE, 0); | 405 gtk_box_pack_start(GTK_BOX(vbox1), vbox2, TRUE, TRUE, 0); |
406 | 406 |
407 /* Create the "Pounce Who" frame. */ | 407 /* Create the "Pounce Who" frame. */ |
408 frame = gaim_gtk_make_frame(vbox2, _("Pounce Who")); | 408 frame = gaim_gtk_make_frame(vbox2, _("Pounce Who")); |
409 | 409 |
410 /* Account: */ | 410 /* Account: */ |
411 hbox = gtk_hbox_new(FALSE, 6); | 411 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BOX_SPACE); |
412 gtk_box_pack_start(GTK_BOX(frame), hbox, FALSE, FALSE, 0); | 412 gtk_box_pack_start(GTK_BOX(frame), hbox, FALSE, FALSE, 0); |
413 gtk_widget_show(hbox); | 413 gtk_widget_show(hbox); |
414 | 414 |
415 label = gtk_label_new_with_mnemonic(_("_Account:")); | 415 label = gtk_label_new_with_mnemonic(_("_Account:")); |
416 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | 416 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); |
426 gtk_box_pack_start(GTK_BOX(hbox), dialog->account_menu, FALSE, FALSE, 0); | 426 gtk_box_pack_start(GTK_BOX(hbox), dialog->account_menu, FALSE, FALSE, 0); |
427 gtk_widget_show(dialog->account_menu); | 427 gtk_widget_show(dialog->account_menu); |
428 gaim_set_accessible_label (dialog->account_menu, label); | 428 gaim_set_accessible_label (dialog->account_menu, label); |
429 | 429 |
430 /* Buddy: */ | 430 /* Buddy: */ |
431 hbox = gtk_hbox_new(FALSE, 6); | 431 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BOX_SPACE); |
432 gtk_box_pack_start(GTK_BOX(frame), hbox, FALSE, FALSE, 0); | 432 gtk_box_pack_start(GTK_BOX(frame), hbox, FALSE, FALSE, 0); |
433 gtk_widget_show(hbox); | 433 gtk_widget_show(hbox); |
434 | 434 |
435 label = gtk_label_new_with_mnemonic(_("_Buddy name:")); | 435 label = gtk_label_new_with_mnemonic(_("_Buddy name:")); |
436 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | 436 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); |
458 /* Create the "Pounce When" frame. */ | 458 /* Create the "Pounce When" frame. */ |
459 frame = gaim_gtk_make_frame(vbox2, _("Pounce When")); | 459 frame = gaim_gtk_make_frame(vbox2, _("Pounce When")); |
460 | 460 |
461 table = gtk_table_new(2, 4, FALSE); | 461 table = gtk_table_new(2, 4, FALSE); |
462 gtk_container_add(GTK_CONTAINER(frame), table); | 462 gtk_container_add(GTK_CONTAINER(frame), table); |
463 gtk_table_set_col_spacings(GTK_TABLE(table), 12); | 463 gtk_table_set_col_spacings(GTK_TABLE(table), GAIM_HIG_BORDER); |
464 gtk_widget_show(table); | 464 gtk_widget_show(table); |
465 | 465 |
466 dialog->signon = | 466 dialog->signon = |
467 gtk_check_button_new_with_mnemonic(_("Si_gn on")); | 467 gtk_check_button_new_with_mnemonic(_("Si_gn on")); |
468 dialog->signoff = | 468 dialog->signoff = |
509 /* Create the "Pounce Action" frame. */ | 509 /* Create the "Pounce Action" frame. */ |
510 frame = gaim_gtk_make_frame(vbox2, _("Pounce Action")); | 510 frame = gaim_gtk_make_frame(vbox2, _("Pounce Action")); |
511 | 511 |
512 table = gtk_table_new(3, 5, FALSE); | 512 table = gtk_table_new(3, 5, FALSE); |
513 gtk_container_add(GTK_CONTAINER(frame), table); | 513 gtk_container_add(GTK_CONTAINER(frame), table); |
514 gtk_table_set_col_spacings(GTK_TABLE(table), 12); | 514 gtk_table_set_col_spacings(GTK_TABLE(table), GAIM_HIG_BORDER); |
515 gtk_widget_show(table); | 515 gtk_widget_show(table); |
516 | 516 |
517 dialog->open_win | 517 dialog->open_win |
518 = gtk_check_button_new_with_mnemonic(_("Op_en an IM window")); | 518 = gtk_check_button_new_with_mnemonic(_("Op_en an IM window")); |
519 dialog->popup | 519 dialog->popup |
617 | 617 |
618 gtk_box_pack_start(GTK_BOX(vbox2), dialog->save_pounce, FALSE, FALSE, 0); | 618 gtk_box_pack_start(GTK_BOX(vbox2), dialog->save_pounce, FALSE, FALSE, 0); |
619 | 619 |
620 /* Now the button box! */ | 620 /* Now the button box! */ |
621 bbox = gtk_hbutton_box_new(); | 621 bbox = gtk_hbutton_box_new(); |
622 gtk_box_set_spacing(GTK_BOX(bbox), 6); | 622 gtk_box_set_spacing(GTK_BOX(bbox), GAIM_HIG_BOX_SPACE); |
623 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); | 623 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); |
624 gtk_box_pack_end(GTK_BOX(vbox1), bbox, FALSE, FALSE, 0); | 624 gtk_box_pack_end(GTK_BOX(vbox1), bbox, FALSE, FALSE, 0); |
625 gtk_widget_show(bbox); | 625 gtk_widget_show(bbox); |
626 | 626 |
627 /* Delete button */ | 627 /* Delete button */ |