comparison src/gtkft.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 634fec5ed0f2
children bb0d7b719af2
comparison
equal deleted inserted replaced
11242:01c06e7ae1f6 11243:a511b77a368b
632 { &label, &dialog->time_remaining_label, _("Time Remaining:") } 632 { &label, &dialog->time_remaining_label, _("Time Remaining:") }
633 }; 633 };
634 634
635 /* Setup the initial table */ 635 /* Setup the initial table */
636 dialog->table = table = gtk_table_new(9, 2, FALSE); 636 dialog->table = table = gtk_table_new(9, 2, FALSE);
637 gtk_table_set_row_spacings(GTK_TABLE(table), 6); 637 gtk_table_set_row_spacings(GTK_TABLE(table), GAIM_HIG_BOX_SPACE);
638 gtk_table_set_col_spacings(GTK_TABLE(table), 6); 638 gtk_table_set_col_spacings(GTK_TABLE(table), GAIM_HIG_BOX_SPACE);
639 639
640 /* Setup the labels */ 640 /* Setup the labels */
641 for (i = 0; i < sizeof(labels) / sizeof(*labels); i++) { 641 for (i = 0; i < sizeof(labels) / sizeof(*labels); i++) {
642 GtkWidget *label; 642 GtkWidget *label;
643 char buf[256]; 643 char buf[256];
691 /* Create the window. */ 691 /* Create the window. */
692 dialog->window = window = gtk_window_new(GTK_WINDOW_TOPLEVEL); 692 dialog->window = window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
693 gtk_window_set_role(GTK_WINDOW(window), "file transfer"); 693 gtk_window_set_role(GTK_WINDOW(window), "file transfer");
694 gtk_window_set_title(GTK_WINDOW(window), _("File Transfers")); 694 gtk_window_set_title(GTK_WINDOW(window), _("File Transfers"));
695 gtk_window_set_resizable(GTK_WINDOW(window), FALSE); 695 gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
696 gtk_container_set_border_width(GTK_CONTAINER(window), 12); 696 gtk_container_set_border_width(GTK_CONTAINER(window), GAIM_HIG_BORDER);
697 697
698 g_signal_connect(G_OBJECT(window), "delete_event", 698 g_signal_connect(G_OBJECT(window), "delete_event",
699 G_CALLBACK(delete_win_cb), dialog); 699 G_CALLBACK(delete_win_cb), dialog);
700 700
701 /* Create the parent vbox for everything. */ 701 /* Create the parent vbox for everything. */
702 vbox1 = gtk_vbox_new(FALSE, 12); 702 vbox1 = gtk_vbox_new(FALSE, GAIM_HIG_BORDER);
703 gtk_container_add(GTK_CONTAINER(window), vbox1); 703 gtk_container_add(GTK_CONTAINER(window), vbox1);
704 gtk_widget_show(vbox1); 704 gtk_widget_show(vbox1);
705 705
706 /* Create the main vbox for top half of the window. */ 706 /* Create the main vbox for top half of the window. */
707 vbox2 = gtk_vbox_new(FALSE, 6); 707 vbox2 = gtk_vbox_new(FALSE, GAIM_HIG_BOX_SPACE);
708 gtk_box_pack_start(GTK_BOX(vbox1), vbox2, TRUE, TRUE, 0); 708 gtk_box_pack_start(GTK_BOX(vbox1), vbox2, TRUE, TRUE, 0);
709 gtk_widget_show(vbox2); 709 gtk_widget_show(vbox2);
710 710
711 /* Setup the listbox */ 711 /* Setup the listbox */
712 sw = setup_tree(dialog); 712 sw = setup_tree(dialog);
754 /* Setup the disclosure for the table. */ 754 /* Setup the disclosure for the table. */
755 gaim_disclosure_set_container(GAIM_DISCLOSURE(disclosure), table); 755 gaim_disclosure_set_container(GAIM_DISCLOSURE(disclosure), table);
756 756
757 /* Now the button box for the buttons */ 757 /* Now the button box for the buttons */
758 bbox = gtk_hbutton_box_new(); 758 bbox = gtk_hbutton_box_new();
759 gtk_box_set_spacing(GTK_BOX(bbox), 6); 759 gtk_box_set_spacing(GTK_BOX(bbox), GAIM_HIG_BOX_SPACE);
760 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); 760 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END);
761 gtk_box_pack_end(GTK_BOX(vbox1), bbox, FALSE, TRUE, 0); 761 gtk_box_pack_end(GTK_BOX(vbox1), bbox, FALSE, TRUE, 0);
762 gtk_widget_show(bbox); 762 gtk_widget_show(bbox);
763 763
764 /* Open button */ 764 /* Open button */