comparison pidgin/gtkprefs.c @ 26479:f5f08111da52

propagate from branch 'im.pidgin.pidgin' (head a609160715ae18beed98b084aac19bc0f6551362) to branch 'im.pidgin.pidgin.vv' (head 6e683319559d829234bc548e0795ed03403af478)
author Mike Ruprecht <maiku@soc.pidgin.im>
date Wed, 01 Apr 2009 04:25:37 +0000
parents e23a74d7c97c e6a7f95cbcc3
children ee0282fe3673
comparison
equal deleted inserted replaced
26477:e1523f30bdb5 26479:f5f08111da52
2834 gtk_misc_set_alignment(GTK_MISC(dd), 0, 0.5); 2834 gtk_misc_set_alignment(GTK_MISC(dd), 0, 0.5);
2835 2835
2836 /* Auto-away stuff */ 2836 /* Auto-away stuff */
2837 vbox = pidgin_make_frame(ret, _("Auto-away")); 2837 vbox = pidgin_make_frame(ret, _("Auto-away"));
2838 2838
2839 button = pidgin_prefs_checkbox(_("Change status when _idle"),
2840 "/purple/away/away_when_idle", vbox);
2841
2842 select = pidgin_prefs_labeled_spin_button(vbox, 2839 select = pidgin_prefs_labeled_spin_button(vbox,
2843 _("_Minutes before becoming idle:"), "/purple/away/mins_before_away", 2840 _("_Minutes before becoming idle:"), "/purple/away/mins_before_away",
2844 1, 24 * 60, sg); 2841 1, 24 * 60, sg);
2845 g_signal_connect(G_OBJECT(button), "clicked", 2842
2846 G_CALLBACK(pidgin_toggle_sensitive), select); 2843 button = pidgin_prefs_checkbox(_("Change status when _idle"),
2844 "/purple/away/away_when_idle", vbox);
2847 2845
2848 /* TODO: Show something useful if we don't have any saved statuses. */ 2846 /* TODO: Show something useful if we don't have any saved statuses. */
2849 menu = pidgin_status_menu(purple_savedstatus_get_idleaway(), G_CALLBACK(set_idle_away)); 2847 menu = pidgin_status_menu(purple_savedstatus_get_idleaway(), G_CALLBACK(set_idle_away));
2850 pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Change _status to:"), sg, menu, TRUE, &label); 2848 pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Change _status to:"), sg, menu, TRUE, &label);
2851 g_signal_connect(G_OBJECT(button), "clicked", 2849 g_signal_connect(G_OBJECT(button), "clicked",
2853 g_signal_connect(G_OBJECT(button), "clicked", 2851 g_signal_connect(G_OBJECT(button), "clicked",
2854 G_CALLBACK(pidgin_toggle_sensitive), label); 2852 G_CALLBACK(pidgin_toggle_sensitive), label);
2855 2853
2856 if (!purple_prefs_get_bool("/purple/away/away_when_idle")) { 2854 if (!purple_prefs_get_bool("/purple/away/away_when_idle")) {
2857 gtk_widget_set_sensitive(GTK_WIDGET(menu), FALSE); 2855 gtk_widget_set_sensitive(GTK_WIDGET(menu), FALSE);
2858 gtk_widget_set_sensitive(GTK_WIDGET(select), FALSE);
2859 gtk_widget_set_sensitive(GTK_WIDGET(label), FALSE); 2856 gtk_widget_set_sensitive(GTK_WIDGET(label), FALSE);
2860 } 2857 }
2861 2858
2862 /* Signon status stuff */ 2859 /* Signon status stuff */
2863 vbox = pidgin_make_frame(ret, _("Status at Startup")); 2860 vbox = pidgin_make_frame(ret, _("Status at Startup"));