Mercurial > pidgin.yaz
comparison src/prefs.c @ 1111:870d7bb95fdc
[gaim-migrate @ 1121]
Bmiller sent in this lit'l patch.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Mon, 20 Nov 2000 19:57:23 +0000 |
parents | c73736fa0b7c |
children | f3e0f41beddb |
comparison
equal
deleted
inserted
replaced
1110:ad20ddc0391e | 1111:870d7bb95fdc |
---|---|
1241 hbox = gtk_hbox_new(FALSE, 5); | 1241 hbox = gtk_hbox_new(FALSE, 5); |
1242 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 0); | 1242 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 0); |
1243 gtk_widget_show(hbox); | 1243 gtk_widget_show(hbox); |
1244 | 1244 |
1245 button = gaim_button(_("Auto Away after"), &general_options, OPT_GEN_AUTO_AWAY, hbox); | 1245 button = gaim_button(_("Auto Away after"), &general_options, OPT_GEN_AUTO_AWAY, hbox); |
1246 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), spin); | |
1247 | 1246 |
1248 adjust = gtk_adjustment_new(auto_away, 1, 1440, 1, 10, 10); | 1247 adjust = gtk_adjustment_new(auto_away, 1, 1440, 1, 10, 10); |
1249 spin = gtk_spin_button_new(GTK_ADJUSTMENT(adjust), 1, 0); | 1248 spin = gtk_spin_button_new(GTK_ADJUSTMENT(adjust), 1, 0); |
1250 gtk_widget_set_usize(spin, 50, -1); | 1249 gtk_widget_set_usize(spin, 50, -1); |
1251 if (!(general_options & OPT_GEN_AUTO_AWAY)) | 1250 if (!(general_options & OPT_GEN_AUTO_AWAY)) |
1252 gtk_widget_set_sensitive(GTK_WIDGET(spin), FALSE); | 1251 gtk_widget_set_sensitive(GTK_WIDGET(spin), FALSE); |
1253 gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); | 1252 gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
1253 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), spin); | |
1254 gtk_signal_connect(GTK_OBJECT(adjust), "value-changed", GTK_SIGNAL_FUNC(set_auto_away), GTK_WIDGET(spin)); | 1254 gtk_signal_connect(GTK_OBJECT(adjust), "value-changed", GTK_SIGNAL_FUNC(set_auto_away), GTK_WIDGET(spin)); |
1255 gtk_widget_show(spin); | 1255 gtk_widget_show(spin); |
1256 | 1256 |
1257 label = gtk_label_new(_("minutes using")); | 1257 label = gtk_label_new(_("minutes using")); |
1258 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | 1258 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); |
1259 gtk_widget_show(label); | 1259 gtk_widget_show(label); |
1260 | 1260 |
1261 prefs_away_menu = gtk_option_menu_new(); | 1261 prefs_away_menu = gtk_option_menu_new(); |
1262 gtk_box_pack_start(GTK_BOX(hbox), prefs_away_menu, FALSE, FALSE, 0); | |
1263 default_away_menu_init(prefs_away_menu); | |
1262 if (!(general_options & OPT_GEN_AUTO_AWAY)) | 1264 if (!(general_options & OPT_GEN_AUTO_AWAY)) |
1263 gtk_widget_set_sensitive(GTK_WIDGET(prefs_away_menu), FALSE); | 1265 gtk_widget_set_sensitive(GTK_WIDGET(prefs_away_menu), FALSE); |
1264 default_away_menu_init(prefs_away_menu); | |
1265 gtk_box_pack_start(GTK_BOX(hbox), prefs_away_menu, FALSE, FALSE, 0); | |
1266 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), prefs_away_menu); | 1266 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(toggle_sensitive), prefs_away_menu); |
1267 gtk_widget_show(prefs_away_menu); | 1267 gtk_widget_show(prefs_away_menu); |
1268 | 1268 |
1269 gtk_widget_show(prefdialog); | 1269 gtk_widget_show(prefdialog); |
1270 } | 1270 } |