Implementing GtkComboBox using GtkTreeMenu !

First iteration at implementing combo box using a delegate
treemenu, almost everything is working. Still need to finalize
sensitivity issues in GtkTreeMenu (and should go ahead and pass
through GtkComboBox code with a fine comb...).
This commit is contained in:
Tristan Van Berkom
2010-11-24 18:14:36 +09:00
parent e1ecd34ce1
commit 83c69f4cf3
3 changed files with 2447 additions and 3762 deletions

View File

@ -829,9 +829,14 @@ row_changed_cb (GtkTreeModel *model,
row_path =
gtk_tree_row_reference_get_path (view->priv->displayed_row);
/* Resize everything in our context if our row changed */
if (gtk_tree_path_compare (row_path, path) == 0)
gtk_cell_area_context_flush (view->priv->context);
if (row_path)
{
/* Resize everything in our context if our row changed */
if (gtk_tree_path_compare (row_path, path) == 0)
gtk_cell_area_context_flush (view->priv->context);
gtk_tree_path_free (row_path);
}
}
}