| 103 label = gtk_label_new_with_mnemonic(_(statuses[i].description)); |
103 label = gtk_label_new_with_mnemonic(_(statuses[i].description)); |
| 104 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); |
104 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); |
| 105 gtk_size_group_add_widget(sg, label); |
105 gtk_size_group_add_widget(sg, label); |
| 106 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); |
106 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); |
| 107 |
107 |
| 108 adj = gtk_adjustment_new(purple_prefs_get_int(pref), -500, 500, 1, 1, 1); |
108 adj = GTK_ADJUSTMENT(gtk_adjustment_new(purple_prefs_get_int(pref), |
| 109 spin = gtk_spin_button_new((GtkAdjustment *)adj, 1, 0); |
109 -500, 500, 1, 1, 1)); |
| |
110 spin = gtk_spin_button_new(adj, 1, 0); |
| 110 g_signal_connect(G_OBJECT(spin), "value-changed", G_CALLBACK(pref_update), pref); |
111 g_signal_connect(G_OBJECT(spin), "value-changed", G_CALLBACK(pref_update), pref); |
| 111 gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
112 gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
| 112 |
113 |
| 113 g_free(pref); |
114 g_free(pref); |
| 114 } |
115 } |
| 136 hbox = gtk_hbox_new(FALSE, 5); |
137 hbox = gtk_hbox_new(FALSE, 5); |
| 137 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
138 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
| 138 |
139 |
| 139 /* make this here so I can use it in the option menu callback, we'll |
140 /* make this here so I can use it in the option menu callback, we'll |
| 140 * actually set it up later */ |
141 * actually set it up later */ |
| 141 adj = gtk_adjustment_new(0, -500, 500, 1, 1, 1); |
142 adj = GTK_ADJUSTMENT(gtk_adjustment_new(0, -500, 500, 1, 1, 1)); |
| 142 spin = gtk_spin_button_new((GtkAdjustment *)adj, 1, 0); |
143 spin = gtk_spin_button_new(adj, 1, 0); |
| 143 |
144 |
| 144 optmenu = pidgin_account_option_menu_new(NULL, TRUE, |
145 optmenu = pidgin_account_option_menu_new(NULL, TRUE, |
| 145 G_CALLBACK(select_account), |
146 G_CALLBACK(select_account), |
| 146 NULL, spin); |
147 NULL, spin); |
| 147 gtk_box_pack_start(GTK_BOX(hbox), optmenu, FALSE, FALSE, 0); |
148 gtk_box_pack_start(GTK_BOX(hbox), optmenu, FALSE, FALSE, 0); |