aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-11-06 04:05:41 +0800
committerChristian Persch <chpe@src.gnome.org>2005-11-06 04:05:41 +0800
commit95c6bfaeea51cf88e315a5c187f7d9ba3eca986e (patch)
treeae7c7228b0e48b51da564085ac66e44b35b69f17
parented10ddc364d470a11cba1a997ad938303fa89261 (diff)
downloadgsoc2013-epiphany-95c6bfaeea51cf88e315a5c187f7d9ba3eca986e.tar
gsoc2013-epiphany-95c6bfaeea51cf88e315a5c187f7d9ba3eca986e.tar.gz
gsoc2013-epiphany-95c6bfaeea51cf88e315a5c187f7d9ba3eca986e.tar.bz2
gsoc2013-epiphany-95c6bfaeea51cf88e315a5c187f7d9ba3eca986e.tar.lz
gsoc2013-epiphany-95c6bfaeea51cf88e315a5c187f7d9ba3eca986e.tar.xz
gsoc2013-epiphany-95c6bfaeea51cf88e315a5c187f7d9ba3eca986e.tar.zst
gsoc2013-epiphany-95c6bfaeea51cf88e315a5c187f7d9ba3eca986e.zip
Scroll the view so the selected cert is visible. Fixes bug #320758.
2005-11-05 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/GtkNSSDialog.cpp: Scroll the view so the selected cert is visible. Fixes bug #320758.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/GtkNSSDialogs.cpp3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 019e3e75d..fa99385e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-05 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/GtkNSSDialog.cpp:
+
+ Scroll the view so the selected cert is visible. Fixes bug #320758.
+
2005-11-04 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-gui.c: (ephy_gui_check_location_writable):
diff --git a/embed/mozilla/GtkNSSDialogs.cpp b/embed/mozilla/GtkNSSDialogs.cpp
index 835b79df2..9a0afd234 100644
--- a/embed/mozilla/GtkNSSDialogs.cpp
+++ b/embed/mozilla/GtkNSSDialogs.cpp
@@ -1100,10 +1100,11 @@ fill_cert_chain_tree (GtkTreeView *treeview, nsIArray *certChain)
}
gtk_tree_view_expand_all (GTK_TREE_VIEW (treeview));
- /* And select the last entry */
+ /* And select the last entry, and scroll the view so it's visible */
GtkTreeSelection *select = gtk_tree_view_get_selection (treeview);
GtkTreePath *path = gtk_tree_model_get_path (model, &parent);
gtk_tree_selection_select_path (select, path);
+ gtk_tree_view_scroll_to_cell (treeview, path, NULL, TRUE, 0.5, 0.0);
gtk_tree_path_free (path);
return TRUE;