combobox: some code cleanups

* Merge adjacent if statements with the same condition
 * Add a space between a function and its declaration
This commit is contained in:
Daniel Boles 2017-01-21 14:44:30 +00:00
parent c5c0127e10
commit c7e4c82df4

View File

@ -1794,10 +1794,7 @@ gtk_combo_box_unset_model (GtkComboBox *combo_box)
priv->reordered_id);
g_signal_handler_disconnect (priv->model,
priv->changed_id);
}
if (priv->model)
{
g_object_unref (priv->model);
priv->model = NULL;
}
@ -3143,7 +3140,7 @@ gtk_combo_box_constructed (GObject *object)
static void
gtk_combo_box_dispose(GObject* object)
gtk_combo_box_dispose (GObject* object)
{
GtkComboBox *combo_box = GTK_COMBO_BOX (object);
GtkComboBoxPrivate *priv = combo_box->priv;