aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-04-19 19:21:52 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-19 19:21:52 +0800
commiteb54a302b7a560007abe4b803d04526d91c07553 (patch)
tree81c085ddfa950e7ee445f3ebddea2f2b262285dd /lib/widgets
parent50ff5e50420a75f627344b7d8bad2451e9fb714a (diff)
downloadgsoc2013-epiphany-eb54a302b7a560007abe4b803d04526d91c07553.tar
gsoc2013-epiphany-eb54a302b7a560007abe4b803d04526d91c07553.tar.gz
gsoc2013-epiphany-eb54a302b7a560007abe4b803d04526d91c07553.tar.bz2
gsoc2013-epiphany-eb54a302b7a560007abe4b803d04526d91c07553.tar.lz
gsoc2013-epiphany-eb54a302b7a560007abe4b803d04526d91c07553.tar.xz
gsoc2013-epiphany-eb54a302b7a560007abe4b803d04526d91c07553.tar.zst
gsoc2013-epiphany-eb54a302b7a560007abe4b803d04526d91c07553.zip
Fix bookmarks editing and warnings when openining the dialog.
2003-04-19 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_add_column), (ephy_node_view_remove), (ephy_node_view_edit): Fix bookmarks editing and warnings when openining the dialog. * lib/widgets/ephy-node-view.h: Remove unused api.
Diffstat (limited to 'lib/widgets')
-rw-r--r--lib/widgets/ephy-node-view.c25
-rw-r--r--lib/widgets/ephy-node-view.h3
2 files changed, 10 insertions, 18 deletions
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index 3d52afd21..18b6cd29c 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -759,6 +759,7 @@ ephy_node_view_add_column (EphyNodeView *view,
view->priv->editable_renderer = renderer;
view->priv->editable_column = gcolumn;
view->priv->editable_node_column = column;
+ view->priv->editable_property = prop_id;
g_signal_connect (renderer, "edited", G_CALLBACK (cell_renderer_edited), view);
}
@@ -800,12 +801,15 @@ ephy_node_view_add_column (EphyNodeView *view,
int scol;
GList *order = NULL;
- scol = ephy_tree_model_node_add_func_column
- (view->priv->nodemodel, G_TYPE_INT,
- (EphyTreeModelNodeValueFunc) provide_priority,
- view);
+ if (priority_prop_id >= 0)
+ {
+ scol = ephy_tree_model_node_add_func_column
+ (view->priv->nodemodel, G_TYPE_INT,
+ (EphyTreeModelNodeValueFunc) provide_priority,
+ view);
+ order = g_list_append (order, GINT_TO_POINTER (scol));
+ }
- order = g_list_append (order, GINT_TO_POINTER (scol));
order = g_list_append (order, GINT_TO_POINTER (column));
gtk_tree_sortable_set_default_sort_func
(GTK_TREE_SORTABLE (view->priv->sortmodel),
@@ -925,7 +929,7 @@ ephy_node_view_remove (EphyNodeView *view)
gtk_tree_model_sort_convert_child_iter_to_iter (GTK_TREE_MODEL_SORT (view->priv->sortmodel),
&iter, &iter2);
iter2 = iter;
-
+
if (gtk_tree_model_iter_next (GTK_TREE_MODEL (view->priv->sortmodel), &iter))
{
path = gtk_tree_model_get_path (GTK_TREE_MODEL (view->priv->sortmodel), &iter);
@@ -1036,15 +1040,6 @@ ephy_node_view_edit (EphyNodeView *view)
}
gboolean
-ephy_node_view_is_editing (EphyNodeView *view,
- int property)
-{
- view->priv->editable_property = property;
-
- return view->priv->editing;
-}
-
-gboolean
ephy_node_view_is_target (EphyNodeView *view)
{
if (target_view == view)
diff --git a/lib/widgets/ephy-node-view.h b/lib/widgets/ephy-node-view.h
index 47a71d463..f19f8cc30 100644
--- a/lib/widgets/ephy-node-view.h
+++ b/lib/widgets/ephy-node-view.h
@@ -107,9 +107,6 @@ void ephy_node_view_enable_drag_dest (EphyNodeView *view,
void ephy_node_view_edit (EphyNodeView *view);
-gboolean ephy_node_view_is_editing (EphyNodeView *view,
- int property);
-
gboolean ephy_node_view_is_target (EphyNodeView *view);
G_END_DECLS