aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-11-29 23:09:04 +0800
committerChristian Persch <chpe@src.gnome.org>2005-11-29 23:09:04 +0800
commit3a78991995ffbd980f1520a4c666929a7ed8b19c (patch)
tree4f3e057216e3128d2bc60d179351efdd7a866595 /src/window-commands.c
parentdaa303eedb6e900836a721673dcd2af444748c87 (diff)
downloadgsoc2013-epiphany-3a78991995ffbd980f1520a4c666929a7ed8b19c.tar
gsoc2013-epiphany-3a78991995ffbd980f1520a4c666929a7ed8b19c.tar.gz
gsoc2013-epiphany-3a78991995ffbd980f1520a4c666929a7ed8b19c.tar.bz2
gsoc2013-epiphany-3a78991995ffbd980f1520a4c666929a7ed8b19c.tar.lz
gsoc2013-epiphany-3a78991995ffbd980f1520a4c666929a7ed8b19c.tar.xz
gsoc2013-epiphany-3a78991995ffbd980f1520a4c666929a7ed8b19c.tar.zst
gsoc2013-epiphany-3a78991995ffbd980f1520a4c666929a7ed8b19c.zip
Add a method to generate collation keys for domain names.
2005-11-29 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-string.c: (ephy_string_collate_key_for_domain): * lib/ephy-string.h: Add a method to generate collation keys for domain names. * src/pdm-dialog.c: (cookie_search_equal), (pdm_dialog_cookies_construct), (cookie_host_to_iter), (compare_cookie_host_keys), (pdm_dialog_fill_cookies_list), (pdm_dialog_cookies_destruct), (pdm_dialog_cookie_add), (pdm_dialog_cookie_scroll_to), (sync_notebook_tab), (pdm_dialog_init), (pdm_dialog_finalize), (pdm_dialog_open): * src/pdm-dialog.h: * src/window-commands.c: (window_cmd_edit_personal_data): Open the PDM dialogue on the cookies page scrolled to show the cookies of the currently loaded page, if there are any. Sort cookies by domain. Allow treeview typeaheadfind search to find by substring not prefix.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index e466f244b..68d0dc710 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -45,6 +45,7 @@
#include "ephy-toolbar-editor.h"
#include "ephy-find-toolbar.h"
#include "ephy-location-entry.h"
+#include "pdm-dialog.h"
#include <string.h>
#include <glib.h>
@@ -648,11 +649,25 @@ void
window_cmd_edit_personal_data (GtkAction *action,
EphyWindow *window)
{
- EphyDialog *dialog;
+ PdmDialog *dialog;
+ EphyTab *tab;
+ GnomeVFSURI *uri;
+ const char *host;
- dialog = EPHY_DIALOG (ephy_shell_get_pdm_dialog (ephy_shell));
+ tab = ephy_window_get_active_tab (window);
+ if (tab == NULL) return;
- ephy_dialog_show (dialog);
+ uri = gnome_vfs_uri_new (ephy_tab_get_address (tab));
+
+ host = uri != NULL ? gnome_vfs_uri_get_host_name (uri) : NULL;
+
+ dialog = EPHY_PDM_DIALOG (ephy_shell_get_pdm_dialog (ephy_shell));
+ pdm_dialog_open (dialog, host);
+
+ if (uri != NULL)
+ {
+ gnome_vfs_uri_unref (uri);
+ }
}
void