| 1413 FALSE); |
1413 FALSE); |
| 1414 gtk_grab_remove (box->popup_window); |
1414 gtk_grab_remove (box->popup_window); |
| 1415 } |
1415 } |
| 1416 |
1416 |
| 1417 |
1417 |
| 1418 static void |
1418 static |
| 1419 toggled_cb(GtkWidget *widget, PidginStatusBox *box) |
1419 gboolean |
| 1420 { |
1420 toggled_cb(GtkWidget *widget, GdkEventButton *event, PidginStatusBox *box) |
| 1421 if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget))) { |
1421 { |
| 1422 if (!box->popup_in_progress) |
1422 if (!box->popup_in_progress) |
| 1423 pidgin_status_box_popup (box); |
1423 pidgin_status_box_popup (box); |
| 1424 } else { |
1424 else |
| 1425 pidgin_status_box_popdown(box); |
1425 pidgin_status_box_popdown(box); |
| 1426 } |
1426 return TRUE; |
| 1427 } |
1427 } |
| 1428 |
1428 |
| 1429 static void |
1429 static void |
| 1430 buddy_icon_set_cb(const char *filename, PidginStatusBox *box) |
1430 buddy_icon_set_cb(const char *filename, PidginStatusBox *box) |
| 1431 { |
1431 { |
| 1771 g_signal_connect(G_OBJECT(status_box->toggle_button), "button-press-event", |
1771 g_signal_connect(G_OBJECT(status_box->toggle_button), "button-press-event", |
| 1772 G_CALLBACK(button_pressed_cb), status_box); |
1772 G_CALLBACK(button_pressed_cb), status_box); |
| 1773 g_signal_connect(G_OBJECT(status_box->toggle_button), "button-release-event", |
1773 g_signal_connect(G_OBJECT(status_box->toggle_button), "button-release-event", |
| 1774 G_CALLBACK(button_released_cb), status_box); |
1774 G_CALLBACK(button_released_cb), status_box); |
| 1775 #endif |
1775 #endif |
| 1776 g_signal_connect(G_OBJECT(status_box->toggle_button), "toggled", |
1776 g_signal_connect(G_OBJECT(status_box->toggle_button), "button-press-event", |
| 1777 G_CALLBACK(toggled_cb), status_box); |
1777 G_CALLBACK(toggled_cb), status_box); |
| 1778 g_signal_connect(G_OBJECT(buffer), "changed", G_CALLBACK(imhtml_changed_cb), status_box); |
1778 g_signal_connect(G_OBJECT(buffer), "changed", G_CALLBACK(imhtml_changed_cb), status_box); |
| 1779 g_signal_connect(G_OBJECT(status_box->imhtml), "format_function_toggle", |
1779 g_signal_connect(G_OBJECT(status_box->imhtml), "format_function_toggle", |
| 1780 G_CALLBACK(imhtml_format_changed_cb), status_box); |
1780 G_CALLBACK(imhtml_format_changed_cb), status_box); |
| 1781 g_signal_connect(G_OBJECT(status_box->imhtml), "key_press_event", |
1781 g_signal_connect(G_OBJECT(status_box->imhtml), "key_press_event", |