2005-07-18 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted)
+ (gtk_combo_box_model_row_inserted): Remove useless calls
+ to gtk_tree_row_reference_inserted/deleted, since we
+ don't use manual row references here.
+
* gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call
gettext_initialization before checking gtk_initialized, otherwise
there are scenarios where it is not called at all. For an
2005-07-18 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted)
+ (gtk_combo_box_model_row_inserted): Remove useless calls
+ to gtk_tree_row_reference_inserted/deleted, since we
+ don't use manual row references here.
+
* gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call
gettext_initialization before checking gtk_initialized, otherwise
there are scenarios where it is not called at all. For an
2005-07-18 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted)
+ (gtk_combo_box_model_row_inserted): Remove useless calls
+ to gtk_tree_row_reference_inserted/deleted, since we
+ don't use manual row references here.
+
* gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call
gettext_initialization before checking gtk_initialized, otherwise
there are scenarios where it is not called at all. For an
{
GtkComboBox *combo_box = GTK_COMBO_BOX (user_data);
- gtk_tree_row_reference_inserted (G_OBJECT (user_data), path);
-
if (combo_box->priv->tree_view)
gtk_combo_box_list_popup_resize (combo_box);
else
{
GtkComboBox *combo_box = GTK_COMBO_BOX (user_data);
- gtk_tree_row_reference_deleted (G_OBJECT (combo_box), path);
-
if (combo_box->priv->cell_view)
{
- if (gtk_tree_row_reference_valid (combo_box->priv->active_row))
- {
- GtkTreePath *path;
-
- path = gtk_tree_row_reference_get_path (combo_box->priv->active_row);
- gtk_cell_view_set_displayed_row (GTK_CELL_VIEW (combo_box->priv->cell_view), path);
- gtk_tree_path_free (path);
- }
- else
+ if (!gtk_tree_row_reference_valid (combo_box->priv->active_row))
gtk_cell_view_set_displayed_row (GTK_CELL_VIEW (combo_box->priv->cell_view), NULL);
}