mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
Remove useless calls to gtk_tree_row_reference_inserted/deleted, since we
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.
This commit is contained in:
parent
b2d302ee13
commit
1e76488bab
@ -1,5 +1,10 @@
|
||||
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
|
||||
|
@ -1,5 +1,10 @@
|
||||
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
|
||||
|
@ -1,5 +1,10 @@
|
||||
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
|
||||
|
@ -2783,8 +2783,6 @@ gtk_combo_box_model_row_inserted (GtkTreeModel *model,
|
||||
{
|
||||
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
|
||||
@ -2798,19 +2796,9 @@ gtk_combo_box_model_row_deleted (GtkTreeModel *model,
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user