forked from AuroraMiddleware/gtk
Initialize height from fixed_height before we do anything, so it always
Wed Aug 18 16:18:00 2004 Manish Singh <yosh@gimp.org> * gtk/gtktreeview.c (gtk_tree_view_row_inserted): Initialize height from fixed_height before we do anything, so it always has a valid value. * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Fix call to gtk_tree_model_get (missing "," in param list).
This commit is contained in:
parent
65ddedd1ae
commit
ba6fc3ccd8
@ -1,3 +1,12 @@
|
||||
Wed Aug 18 16:18:00 2004 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_row_inserted): Initialize height
|
||||
from fixed_height before we do anything, so it always has a valid
|
||||
value.
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Fix call
|
||||
to gtk_tree_model_get (missing "," in param list).
|
||||
|
||||
2004-08-18 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from 2.4:
|
||||
|
@ -1,3 +1,12 @@
|
||||
Wed Aug 18 16:18:00 2004 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_row_inserted): Initialize height
|
||||
from fixed_height before we do anything, so it always has a valid
|
||||
value.
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Fix call
|
||||
to gtk_tree_model_get (missing "," in param list).
|
||||
|
||||
2004-08-18 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from 2.4:
|
||||
|
@ -1,3 +1,12 @@
|
||||
Wed Aug 18 16:18:00 2004 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_row_inserted): Initialize height
|
||||
from fixed_height before we do anything, so it always has a valid
|
||||
value.
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Fix call
|
||||
to gtk_tree_model_get (missing "," in param list).
|
||||
|
||||
2004-08-18 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from 2.4:
|
||||
|
@ -1,3 +1,12 @@
|
||||
Wed Aug 18 16:18:00 2004 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_row_inserted): Initialize height
|
||||
from fixed_height before we do anything, so it always has a valid
|
||||
value.
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Fix call
|
||||
to gtk_tree_model_get (missing "," in param list).
|
||||
|
||||
2004-08-18 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from 2.4:
|
||||
|
@ -942,7 +942,7 @@ shortcuts_reload_icons (GtkFileChooserDefault *impl)
|
||||
|
||||
gtk_tree_model_get (GTK_TREE_MODEL (impl->shortcuts_model), &iter,
|
||||
SHORTCUTS_COL_DATA, &data,
|
||||
SHORTCUTS_COL_IS_VOLUME &is_volume,
|
||||
SHORTCUTS_COL_IS_VOLUME, &is_volume,
|
||||
SHORTCUTS_COL_PIXBUF_VISIBLE, &pixbuf_visible,
|
||||
-1);
|
||||
|
||||
|
@ -7080,6 +7080,12 @@ gtk_tree_view_row_inserted (GtkTreeModel *model,
|
||||
|
||||
g_return_if_fail (path != NULL || iter != NULL);
|
||||
|
||||
if (tree_view->priv->fixed_height_mode
|
||||
&& tree_view->priv->fixed_height >= 0)
|
||||
height = tree_view->priv->fixed_height;
|
||||
else
|
||||
height = 0;
|
||||
|
||||
if (path == NULL)
|
||||
{
|
||||
path = gtk_tree_model_get_path (model, iter);
|
||||
@ -7137,12 +7143,6 @@ gtk_tree_view_row_inserted (GtkTreeModel *model,
|
||||
if (tree == NULL)
|
||||
goto done;
|
||||
|
||||
if (tree_view->priv->fixed_height_mode
|
||||
&& tree_view->priv->fixed_height >= 0)
|
||||
height = tree_view->priv->fixed_height;
|
||||
else
|
||||
height = 0;
|
||||
|
||||
/* ref the node */
|
||||
gtk_tree_model_ref_node (tree_view->priv->model, iter);
|
||||
if (indices[depth - 1] == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user