Mercurial > pidgin
comparison src/gtkdialogs.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 | e25575a59f01 |
children | 90be432e8385 |
comparison
equal
deleted
inserted
replaced
11242:01c06e7ae1f6 | 11243:a511b77a368b |
---|---|
206 gtk_window_set_title(GTK_WINDOW(about), _("About Gaim")); | 206 gtk_window_set_title(GTK_WINDOW(about), _("About Gaim")); |
207 gtk_window_set_role(GTK_WINDOW(about), "about"); | 207 gtk_window_set_role(GTK_WINDOW(about), "about"); |
208 gtk_window_set_resizable(GTK_WINDOW(about), TRUE); | 208 gtk_window_set_resizable(GTK_WINDOW(about), TRUE); |
209 gtk_window_set_default_size(GTK_WINDOW(about), 340, 550); /* Golden ratio in da hizzy */ | 209 gtk_window_set_default_size(GTK_WINDOW(about), 340, 550); /* Golden ratio in da hizzy */ |
210 | 210 |
211 hbox = gtk_hbox_new(FALSE, 12); | 211 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BORDER); |
212 gtk_container_set_border_width(GTK_CONTAINER(hbox), 12); | 212 gtk_container_set_border_width(GTK_CONTAINER(hbox), GAIM_HIG_BORDER); |
213 gtk_container_add(GTK_CONTAINER(about), hbox); | 213 gtk_container_add(GTK_CONTAINER(about), hbox); |
214 | 214 |
215 vbox = gtk_vbox_new(FALSE, 12); | 215 vbox = gtk_vbox_new(FALSE, GAIM_HIG_BORDER); |
216 gtk_container_add(GTK_CONTAINER(hbox), vbox); | 216 gtk_container_add(GTK_CONTAINER(hbox), vbox); |
217 | 217 |
218 logo = gtk_image_new_from_stock(GAIM_STOCK_LOGO, gtk_icon_size_from_name(GAIM_ICON_SIZE_LOGO)); | 218 logo = gtk_image_new_from_stock(GAIM_STOCK_LOGO, gtk_icon_size_from_name(GAIM_ICON_SIZE_LOGO)); |
219 obj = gtk_widget_get_accessible(logo); | 219 obj = gtk_widget_get_accessible(logo); |
220 atk_object_set_description(obj, "Gaim " VERSION); | 220 atk_object_set_description(obj, "Gaim " VERSION); |
579 | 579 |
580 window = gtk_dialog_new_with_buttons(GAIM_ALERT_TITLE, NULL, 0, GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL); | 580 window = gtk_dialog_new_with_buttons(GAIM_ALERT_TITLE, NULL, 0, GTK_STOCK_CLOSE, GTK_RESPONSE_OK, NULL); |
581 gtk_dialog_set_default_response (GTK_DIALOG(window), GTK_RESPONSE_OK); | 581 gtk_dialog_set_default_response (GTK_DIALOG(window), GTK_RESPONSE_OK); |
582 g_signal_connect(G_OBJECT(window), "response", G_CALLBACK(gtk_widget_destroy), NULL); | 582 g_signal_connect(G_OBJECT(window), "response", G_CALLBACK(gtk_widget_destroy), NULL); |
583 | 583 |
584 gtk_container_set_border_width (GTK_CONTAINER(window), 6); | 584 gtk_container_set_border_width (GTK_CONTAINER(window), GAIM_HIG_BOX_SPACE); |
585 gtk_window_set_resizable(GTK_WINDOW(window), FALSE); | 585 gtk_window_set_resizable(GTK_WINDOW(window), FALSE); |
586 gtk_dialog_set_has_separator(GTK_DIALOG(window), FALSE); | 586 gtk_dialog_set_has_separator(GTK_DIALOG(window), FALSE); |
587 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(window)->vbox), 12); | 587 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(window)->vbox), GAIM_HIG_BORDER); |
588 gtk_container_set_border_width (GTK_CONTAINER(GTK_DIALOG(window)->vbox), 6); | 588 gtk_container_set_border_width (GTK_CONTAINER(GTK_DIALOG(window)->vbox), GAIM_HIG_BOX_SPACE); |
589 | 589 |
590 hbox = gtk_hbox_new(FALSE, 12); | 590 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BORDER); |
591 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(window)->vbox), hbox); | 591 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(window)->vbox), hbox); |
592 img = gtk_image_new_from_stock(GAIM_STOCK_DIALOG_COOL, gtk_icon_size_from_name(GAIM_ICON_SIZE_DIALOG_COOL)); | 592 img = gtk_image_new_from_stock(GAIM_STOCK_DIALOG_COOL, gtk_icon_size_from_name(GAIM_ICON_SIZE_DIALOG_COOL)); |
593 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); | 593 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); |
594 | 594 |
595 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); | 595 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); |
748 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, | 748 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, |
749 GAIM_STOCK_WARN, GTK_RESPONSE_OK, NULL); | 749 GAIM_STOCK_WARN, GTK_RESPONSE_OK, NULL); |
750 gtk_dialog_set_default_response (GTK_DIALOG(w->window), GTK_RESPONSE_OK); | 750 gtk_dialog_set_default_response (GTK_DIALOG(w->window), GTK_RESPONSE_OK); |
751 g_signal_connect(G_OBJECT(w->window), "response", G_CALLBACK(gaim_gtkdialogs_warn_cb), w); | 751 g_signal_connect(G_OBJECT(w->window), "response", G_CALLBACK(gaim_gtkdialogs_warn_cb), w); |
752 | 752 |
753 gtk_container_set_border_width (GTK_CONTAINER(w->window), 6); | 753 gtk_container_set_border_width (GTK_CONTAINER(w->window), GAIM_HIG_BOX_SPACE); |
754 gtk_window_set_resizable(GTK_WINDOW(w->window), FALSE); | 754 gtk_window_set_resizable(GTK_WINDOW(w->window), FALSE); |
755 gtk_dialog_set_has_separator(GTK_DIALOG(w->window), FALSE); | 755 gtk_dialog_set_has_separator(GTK_DIALOG(w->window), FALSE); |
756 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(w->window)->vbox), 12); | 756 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(w->window)->vbox), GAIM_HIG_BORDER); |
757 gtk_container_set_border_width (GTK_CONTAINER(GTK_DIALOG(w->window)->vbox), 6); | 757 gtk_container_set_border_width (GTK_CONTAINER(GTK_DIALOG(w->window)->vbox), GAIM_HIG_BOX_SPACE); |
758 | 758 |
759 hbox = gtk_hbox_new(FALSE, 12); | 759 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BORDER); |
760 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(w->window)->vbox), hbox); | 760 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(w->window)->vbox), hbox); |
761 | 761 |
762 img = gtk_image_new_from_stock(GAIM_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG); | 762 img = gtk_image_new_from_stock(GAIM_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG); |
763 gtk_misc_set_alignment(GTK_MISC(img), 0, 0); | 763 gtk_misc_set_alignment(GTK_MISC(img), 0, 0); |
764 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); | 764 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); |
775 g_free(labeltext); | 775 g_free(labeltext); |
776 | 776 |
777 w->anon = gtk_check_button_new_with_mnemonic(_("Warn _anonymously?")); | 777 w->anon = gtk_check_button_new_with_mnemonic(_("Warn _anonymously?")); |
778 gtk_box_pack_start(GTK_BOX(vbox), w->anon, FALSE, FALSE, 0); | 778 gtk_box_pack_start(GTK_BOX(vbox), w->anon, FALSE, FALSE, 0); |
779 | 779 |
780 hbox = gtk_hbox_new(FALSE, 6); | 780 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BOX_SPACE); |
781 gtk_container_add(GTK_CONTAINER(vbox), hbox); | 781 gtk_container_add(GTK_CONTAINER(vbox), hbox); |
782 img = gtk_image_new_from_stock(GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_MENU); | 782 img = gtk_image_new_from_stock(GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_MENU); |
783 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); | 783 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); |
784 labeltext = _("<b>Anonymous warnings are less severe.</b>"); | 784 labeltext = _("<b>Anonymous warnings are less severe.</b>"); |
785 label = gtk_label_new(NULL); | 785 label = gtk_label_new(NULL); |