Mercurial > pidgin
comparison src/gtkstatusbox.c @ 13358:708baf7cfee8
[gaim-migrate @ 15731]
sf patch #1439082, from Sadrul Habib Chowdhury
"It is not necessary to change the selection in the
status box when you start typing. This removes a bug
for account-boxes which always set the status of the
account to what the global-status was set to instead of
the account-box when you typed something in the
account-box entry.
(The selection was being updated when user started
typing because the statusbox used to select and show
transient status titles -- for a couple of days. So it
was necessary to change to the corresponding
primitive-status when user started typing)"
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 01 Mar 2006 05:57:36 +0000 |
parents | 41c4b4aa523a |
children | 1a965241c8b9 |
comparison
equal
deleted
inserted
replaced
13357:af03d3b20cd2 | 13358:708baf7cfee8 |
---|---|
1516 if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) | 1516 if (GTK_WIDGET_IS_SENSITIVE(GTK_WIDGET(status_box))) |
1517 { | 1517 { |
1518 if (status_box->typing != 0) { | 1518 if (status_box->typing != 0) { |
1519 gtk_gaim_status_box_pulse_typing(status_box); | 1519 gtk_gaim_status_box_pulse_typing(status_box); |
1520 g_source_remove(status_box->typing); | 1520 g_source_remove(status_box->typing); |
1521 } else { | |
1522 gint index; | |
1523 GaimSavedStatus *saved = gaim_savedstatus_get_current(); | |
1524 | |
1525 index = get_statusbox_index(status_box, saved); | |
1526 | |
1527 gtk_widget_set_sensitive(GTK_WIDGET(status_box), FALSE); | |
1528 gtk_combo_box_set_active(GTK_COMBO_BOX(status_box), index); | |
1529 gtk_widget_set_sensitive(GTK_WIDGET(status_box), TRUE); | |
1530 gtk_widget_grab_focus(status_box->imhtml); | |
1531 } | 1521 } |
1532 status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box); | 1522 status_box->typing = g_timeout_add(TYPING_TIMEOUT, (GSourceFunc)remove_typing_cb, status_box); |
1533 } | 1523 } |
1534 gtk_gaim_status_box_refresh(status_box); | 1524 gtk_gaim_status_box_refresh(status_box); |
1535 } | 1525 } |