From c7e4c82df45f2a8671c53c10c30b664ad655bd52 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Sat, 21 Jan 2017 14:44:30 +0000 Subject: [PATCH] combobox: some code cleanups * Merge adjacent if statements with the same condition * Add a space between a function and its declaration --- gtk/gtkcombobox.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index f54a09f8ff..471e419bb3 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -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;