forked from AuroraMiddleware/gtk
ComboBox: Dodge possible surplus disconnects
in case anyone connected any other signal on the model to this ComboBox.
This commit is contained in:
parent
8de8525b44
commit
e6bbc10bd5
@ -1616,7 +1616,18 @@ gtk_combo_box_unset_model (GtkComboBox *combo_box)
|
|||||||
|
|
||||||
if (priv->model)
|
if (priv->model)
|
||||||
{
|
{
|
||||||
g_signal_handlers_disconnect_by_data (priv->model, combo_box);
|
g_signal_handlers_disconnect_by_func (priv->model,
|
||||||
|
gtk_combo_box_model_row_inserted,
|
||||||
|
combo_box);
|
||||||
|
g_signal_handlers_disconnect_by_func (priv->model,
|
||||||
|
gtk_combo_box_model_row_deleted,
|
||||||
|
combo_box);
|
||||||
|
g_signal_handlers_disconnect_by_func (priv->model,
|
||||||
|
gtk_combo_box_model_rows_reordered,
|
||||||
|
combo_box);
|
||||||
|
g_signal_handlers_disconnect_by_func (priv->model,
|
||||||
|
gtk_combo_box_model_row_changed,
|
||||||
|
combo_box);
|
||||||
|
|
||||||
g_object_unref (priv->model);
|
g_object_unref (priv->model);
|
||||||
priv->model = NULL;
|
priv->model = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user