comparison src/gtkprefs.c @ 11442:73f7cfa46f1b

[gaim-migrate @ 13681] Fix some layout issues. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 04 Sep 2005 21:54:24 +0000
parents e1ab173ef3b5
children b47708f46a38
comparison
equal deleted inserted replaced
11441:9f6df41df587 11442:73f7cfa46f1b
1029 ret = gtk_vbox_new(FALSE, GAIM_HIG_BOX_SPACE); 1029 ret = gtk_vbox_new(FALSE, GAIM_HIG_BOX_SPACE);
1030 gtk_container_set_border_width (GTK_CONTAINER (ret), GAIM_HIG_BORDER); 1030 gtk_container_set_border_width (GTK_CONTAINER (ret), GAIM_HIG_BORDER);
1031 1031
1032 vbox = gaim_gtk_make_frame (ret, _("IP Address")); 1032 vbox = gaim_gtk_make_frame (ret, _("IP Address"));
1033 1033
1034 stun_server_entry = gaim_gtk_prefs_labeled_entry(vbox,_("STUN Server:"), "/core/network/stun_server", NULL);
1035
1034 auto_ip_checkbox = gaim_gtk_prefs_checkbox(_("_Autodetect IP Address"), 1036 auto_ip_checkbox = gaim_gtk_prefs_checkbox(_("_Autodetect IP Address"),
1035 "/core/network/auto_ip", vbox); 1037 "/core/network/auto_ip", vbox);
1036 stun_server_entry = gaim_gtk_prefs_labeled_entry(vbox,_("STUN Server"), "/core/network/stun_server", NULL);
1037 1038
1038 table = gtk_table_new(2, 1, FALSE); 1039 table = gtk_table_new(2, 1, FALSE);
1039 gtk_container_set_border_width(GTK_CONTAINER(table), 5); 1040 gtk_container_set_border_width(GTK_CONTAINER(table), 0);
1040 gtk_table_set_col_spacings(GTK_TABLE(table), 5); 1041 gtk_table_set_col_spacings(GTK_TABLE(table), 5);
1041 gtk_table_set_row_spacings(GTK_TABLE(table), 10); 1042 gtk_table_set_row_spacings(GTK_TABLE(table), 10);
1042 gtk_container_add(GTK_CONTAINER(vbox), table); 1043 gtk_container_add(GTK_CONTAINER(vbox), table);
1043 1044
1044 label = gtk_label_new_with_mnemonic(_("Public _IP:")); 1045 label = gtk_label_new_with_mnemonic(_("Public _IP:"));
1106 } 1107 }
1107 gaim_prefs_connect_callback(prefs, "/core/proxy/type", 1108 gaim_prefs_connect_callback(prefs, "/core/proxy/type",
1108 proxy_changed_cb, prefs_proxy_frame); 1109 proxy_changed_cb, prefs_proxy_frame);
1109 1110
1110 table = gtk_table_new(4, 2, FALSE); 1111 table = gtk_table_new(4, 2, FALSE);
1111 gtk_container_set_border_width(GTK_CONTAINER(table), 5); 1112 gtk_container_set_border_width(GTK_CONTAINER(table), 0);
1112 gtk_table_set_col_spacings(GTK_TABLE(table), 5); 1113 gtk_table_set_col_spacings(GTK_TABLE(table), 5);
1113 gtk_table_set_row_spacings(GTK_TABLE(table), 10); 1114 gtk_table_set_row_spacings(GTK_TABLE(table), 10);
1114 gtk_container_add(GTK_CONTAINER(prefs_proxy_frame), table); 1115 gtk_container_add(GTK_CONTAINER(prefs_proxy_frame), table);
1115 1116
1116 1117
1586 NULL); 1587 NULL);
1587 gtk_size_group_add_widget(sg, dd); 1588 gtk_size_group_add_widget(sg, dd);
1588 gtk_misc_set_alignment(GTK_MISC(dd), 0, 0.5); 1589 gtk_misc_set_alignment(GTK_MISC(dd), 0, 0.5);
1589 1590
1590 hbox = gtk_hbox_new(FALSE, 5); 1591 hbox = gtk_hbox_new(FALSE, 5);
1591 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 5); 1592 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
1592 1593
1593 label = gtk_label_new_with_mnemonic(_("Sound c_ommand:\n(%s for filename)")); 1594 label = gtk_label_new_with_mnemonic(_("Sound c_ommand:\n(%s for filename)"));
1594 gtk_size_group_add_widget(sg, label); 1595 gtk_size_group_add_widget(sg, label);
1595 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); 1596 gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
1596 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 5); 1597 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
1597 1598
1598 entry = gtk_entry_new(); 1599 entry = gtk_entry_new();
1599 gtk_label_set_mnemonic_widget(GTK_LABEL(label), entry); 1600 gtk_label_set_mnemonic_widget(GTK_LABEL(label), entry);
1600 1601
1601 gtk_editable_set_editable(GTK_EDITABLE(entry), TRUE); 1602 gtk_editable_set_editable(GTK_EDITABLE(entry), TRUE);
1602 cmd = gaim_prefs_get_string("/gaim/gtk/sound/command"); 1603 cmd = gaim_prefs_get_string("/gaim/gtk/sound/command");
1603 if(cmd) 1604 if(cmd)
1604 gtk_entry_set_text(GTK_ENTRY(entry), cmd); 1605 gtk_entry_set_text(GTK_ENTRY(entry), cmd);
1605 gtk_widget_set_size_request(entry, 75, -1); 1606
1606 1607 gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0);
1607 gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 5);
1608 g_signal_connect(G_OBJECT(entry), "changed", 1608 g_signal_connect(G_OBJECT(entry), "changed",
1609 G_CALLBACK(sound_cmd_yeah), NULL); 1609 G_CALLBACK(sound_cmd_yeah), NULL);
1610 1610
1611 gtk_widget_set_sensitive(hbox, 1611 gtk_widget_set_sensitive(hbox,
1612 !strcmp(gaim_prefs_get_string("/gaim/gtk/sound/method"), 1612 !strcmp(gaim_prefs_get_string("/gaim/gtk/sound/method"),