aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-17 19:26:11 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-17 19:26:11 +0800
commitc59be23acf60d721f2aa2b37e242656a22ce29ff (patch)
treed5196c3f9adaa500df7d8144879af05729db1dfe
parent5af8580728d5074c39d007cf008bc3be3a9a2149 (diff)
downloadgsoc2013-epiphany-c59be23acf60d721f2aa2b37e242656a22ce29ff.tar
gsoc2013-epiphany-c59be23acf60d721f2aa2b37e242656a22ce29ff.tar.gz
gsoc2013-epiphany-c59be23acf60d721f2aa2b37e242656a22ce29ff.tar.bz2
gsoc2013-epiphany-c59be23acf60d721f2aa2b37e242656a22ce29ff.tar.lz
gsoc2013-epiphany-c59be23acf60d721f2aa2b37e242656a22ce29ff.tar.xz
gsoc2013-epiphany-c59be23acf60d721f2aa2b37e242656a22ce29ff.tar.zst
gsoc2013-epiphany-c59be23acf60d721f2aa2b37e242656a22ce29ff.zip
Resync with galeon.
2003-11-17 Marco Pesenti Gritti <marco@gnome.org> * configure.in: * embed/mozilla/GtkNSSDialogs.cpp: * embed/mozilla/GtkNSSKeyPairDialogs.cpp: Resync with galeon. * embed/mozilla/mozilla-embed-single.cpp: Header name change
-rw-r--r--ChangeLog12
-rw-r--r--configure.in4
-rw-r--r--embed/mozilla/GtkNSSDialogs.cpp50
-rw-r--r--embed/mozilla/GtkNSSKeyPairDialogs.cpp26
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp4
5 files changed, 70 insertions, 26 deletions
diff --git a/ChangeLog b/ChangeLog
index a94411f01..087a8a6d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2003-11-17 Marco Pesenti Gritti <marco@gnome.org>
+
+ * configure.in:
+ * embed/mozilla/GtkNSSDialogs.cpp:
+ * embed/mozilla/GtkNSSKeyPairDialogs.cpp:
+
+ Resync with galeon.
+
+ * embed/mozilla/mozilla-embed-single.cpp:
+
+ Header name change
+
2003-11-16 Marco Pesenti Gritti <marco@gnome.org>
* src/ephy-shell.c: (toolwindow_show_cb), (toolwindow_hide_cb),
diff --git a/configure.in b/configure.in
index 6d7118f11..a6465d922 100644
--- a/configure.in
+++ b/configure.in
@@ -186,8 +186,8 @@ case "$MOZILLA_VERSION" in
1.5b) MOZILLA_SNAPSHOT=11 ;;
1.5) MOZILLA_SNAPSHOT=11 ;;
1.6a) MOZILLA_SNAPSHOT=12 ;;
- 1.6b) MOZILLA_SNAPSHOT=12 ;;
-trunk) MOZILLA_SNAPSHOT=12 ;;
+ 1.6b) MOZILLA_SNAPSHOT=13 ;;
+trunk) MOZILLA_SNAPSHOT=13 ;;
*) AC_ERROR([
*****************************************************************************
Epiphany can be built using Mozilla 1.4, 1.4.1, 1.5, 1.6a, 1.6b or
diff --git a/embed/mozilla/GtkNSSDialogs.cpp b/embed/mozilla/GtkNSSDialogs.cpp
index 05026f7af..410293e52 100644
--- a/embed/mozilla/GtkNSSDialogs.cpp
+++ b/embed/mozilla/GtkNSSDialogs.cpp
@@ -33,15 +33,11 @@
#include "MozillaPrivate.h"
#include "nsIX509Cert.h"
-#include "nsICertificateDialogs.h"
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIX509CertValidity.h"
-#include "nsIDialogParamBlock.h"
-#include "nsIWindowWatcher.h"
-#include "nsIDOMWindowInternal.h"
#include "nsIX509CertDB.h"
#include "nsIASN1Object.h"
#include "nsIASN1Sequence.h"
@@ -72,7 +68,7 @@
#include <gtk/gtktextview.h>
#include <gtk/gtkprogressbar.h>
-#include <glib/gi18n.h>
+#include <libgnome/gnome-i18n.h>
#include "GtkNSSDialogs.h"
#include "ephy-glade.h"
@@ -148,6 +144,7 @@ higgy_setup_dialog (GtkDialog *dialog, const gchar *stock_icon,
g_return_if_fail (GTK_IS_DIALOG (dialog));
g_return_if_fail (content_label);
+ gtk_dialog_set_has_separator (dialog, FALSE);
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
@@ -165,6 +162,7 @@ higgy_setup_dialog (GtkDialog *dialog, const gchar *stock_icon,
label = gtk_label_new (NULL);
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+ gtk_label_set_selectable (GTK_LABEL (label), TRUE);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
@@ -213,7 +211,7 @@ display_cert_warning_box (nsIInterfaceRequestor *ctx,
dialog = gtk_dialog_new_with_buttons ("",
GTK_WINDOW (gparent),
- GTK_DIALOG_NO_SEPARATOR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
NULL);
higgy_setup_dialog (GTK_DIALOG (dialog),
@@ -430,7 +428,7 @@ GtkNSSDialogs::ConfirmCertExpired (nsIInterfaceRequestor *ctx,
/* To translators: this a time format that is used while displaying the
* expiry or start date of an SSL certificate, for the format see
* strftime(3) */
- strftime (formattedDate, sizeof(formattedDate), _("%a %-d %b %Y"),
+ strftime (formattedDate, sizeof(formattedDate), _("%a %d %b %Y"),
localtime_r (&t, &tm));
ttCommonName = g_strdup_printf ("\"<tt>%s</tt>\"",
@@ -468,7 +466,7 @@ GtkNSSDialogs::NotifyCrlNextupdate (nsIInterfaceRequestor *ctx,
dialog = gtk_dialog_new_with_buttons ("",
GTK_WINDOW (gparent),
- GTK_DIALOG_NO_SEPARATOR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_OK,
GTK_RESPONSE_OK,
NULL);
@@ -504,8 +502,11 @@ GtkNSSDialogs::NotifyCrlNextupdate (nsIInterfaceRequestor *ctx,
gtk_widget_show_all (dialog);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
+ g_signal_connect (G_OBJECT (dialog),
+ "response",
+ (GCallback)gtk_widget_destroy, NULL);
+
+ gtk_widget_show_all (dialog);
return NS_OK;
}
@@ -524,7 +525,7 @@ GtkNSSDialogs::ConfirmDownloadCACert(nsIInterfaceRequestor *ctx,
dialog = gtk_dialog_new_with_buttons ("",
GTK_WINDOW (gparent),
- GTK_DIALOG_NO_SEPARATOR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
_("_View Certificate"),
NSSDIALOG_RESPONSE_VIEW_CERT,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
@@ -617,7 +618,7 @@ GtkNSSDialogs::NotifyCACertExists (nsIInterfaceRequestor *ctx)
dialog = gtk_dialog_new_with_buttons ("",
GTK_WINDOW (gparent),
- GTK_DIALOG_NO_SEPARATOR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_OK,
GTK_RESPONSE_OK,
NULL);
@@ -627,13 +628,15 @@ GtkNSSDialogs::NotifyCACertExists (nsIInterfaceRequestor *ctx)
msg = g_strdup_printf ("<span weight=\"bold\" size=\"larger\">%s</span>\n\n%s",
_("Certificate already exists."),
- _("The Certificate has already been imported."));
+ _("The certificate has already been imported."));
gtk_label_set_markup (GTK_LABEL (label), msg);
g_free (msg);
+ g_signal_connect (G_OBJECT (dialog),
+ "response",
+ (GCallback)gtk_widget_destroy, NULL);
+
gtk_widget_show_all (dialog);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
return NS_OK;
}
@@ -736,7 +739,7 @@ GtkNSSDialogs::SetPKCS12FilePassword(nsIInterfaceRequestor *ctx,
dialog = gtk_dialog_new_with_buttons ("",
GTK_WINDOW (gparent),
- GTK_DIALOG_NO_SEPARATOR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CANCEL,
GTK_RESPONSE_CANCEL,
NULL);
@@ -845,7 +848,7 @@ GtkNSSDialogs::GetPKCS12FilePassword(nsIInterfaceRequestor *ctx,
dialog = gtk_dialog_new_with_buttons ("",
GTK_WINDOW (gparent),
- GTK_DIALOG_NO_SEPARATOR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
_("I_mport Certificate"), GTK_RESPONSE_OK,
NULL);
@@ -926,7 +929,7 @@ GtkNSSDialogs::CrlImportStatusDialog(nsIInterfaceRequestor *ctx, nsICRLInfo *crl
dialog = gtk_dialog_new_with_buttons ("",
GTK_WINDOW (gparent),
- GTK_DIALOG_NO_SEPARATOR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
@@ -965,9 +968,11 @@ GtkNSSDialogs::CrlImportStatusDialog(nsIInterfaceRequestor *ctx, nsICRLInfo *crl
gtk_box_pack_start (GTK_BOX (vbox), higgy_indent_widget (table), FALSE, FALSE, 0);
gtk_widget_show_all (dialog);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
+ g_signal_connect (G_OBJECT (dialog),
+ "response",
+ (GCallback)gtk_widget_destroy, NULL);
+ gtk_widget_show_all (dialog);
return NS_OK;
}
@@ -1231,8 +1236,6 @@ setup_view_cert_tree (GtkWidget *dialog, GladeXML*gxml, nsIArray *certChain)
return fill_cert_chain_tree (GTK_TREE_VIEW (chain_tree_view), certChain);
}
-
-
/* void viewCert (in nsIX509Cert cert); */
NS_IMETHODIMP
GtkNSSDialogs::ViewCert(nsIInterfaceRequestor *ctx,
@@ -1253,6 +1256,7 @@ GtkNSSDialogs::ViewCert(nsIInterfaceRequestor *ctx,
nsCOMPtr<nsIDOMWindow> parent = do_GetInterface (ctx);
GtkWidget *gparent = MozillaFindGtkParent (parent);
gtk_window_set_transient_for (GTK_WINDOW(dialog), GTK_WINDOW(gparent));
+ gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
gtk_window_set_title (GTK_WINDOW (dialog), _("Certificate Properties"));
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
@@ -1381,10 +1385,10 @@ GtkNSSDialogs::ViewCert(nsIInterfaceRequestor *ctx,
if (ret == FALSE) return NS_ERROR_FAILURE;
g_object_unref (gxml);
+
gtk_widget_show_all (dialog);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
-
return NS_OK;
}
diff --git a/embed/mozilla/GtkNSSKeyPairDialogs.cpp b/embed/mozilla/GtkNSSKeyPairDialogs.cpp
index 8f81c68ea..941bcebe3 100644
--- a/embed/mozilla/GtkNSSKeyPairDialogs.cpp
+++ b/embed/mozilla/GtkNSSKeyPairDialogs.cpp
@@ -55,8 +55,9 @@
#include "gtk/gtklabel.h"
#include "gtk/gtkhbox.h"
#include "gtk/gtkvbox.h"
+#include "gtk/gtkmain.h"
-#include <glib/gi18n.h>
+#include <libgnome/gnome-i18n.h>
#include "GtkNSSKeyPairDialogs.h"
@@ -106,6 +107,25 @@ NS_IMETHODIMP KeyPairHelperWindow::Close()
}
/* ------------------------------------------------------------ */
+static void
+begin_busy (GtkWidget *widget)
+{
+ static GdkCursor *cursor = NULL;
+
+ if (cursor == NULL) cursor = gdk_cursor_new (GDK_WATCH);
+
+ if (!GTK_WIDGET_REALIZED (widget)) gtk_widget_realize (GTK_WIDGET(widget));
+
+ gdk_window_set_cursor (GTK_WIDGET (widget)->window, cursor);
+ while (gtk_events_pending ()) gtk_main_iteration ();
+}
+
+static void
+end_busy (GtkWidget *widget)
+{
+ gdk_window_set_cursor (GTK_WIDGET(widget)->window, NULL);
+}
+
struct KeyPairInfo
{
@@ -177,6 +197,7 @@ GtkNSSKeyPairDialogs::DisplayGeneratingKeypairInfo (nsIInterfaceRequestor *ctx,
gtk_widget_show_all (dialog);
gtk_widget_hide (GTK_DIALOG (dialog)->action_area);
+ begin_busy (dialog);
runnable->StartKeyGeneration (helper);
int res = gtk_dialog_run (GTK_DIALOG (dialog));
if (res != GTK_RESPONSE_OK && helper->close_called == FALSE)
@@ -189,6 +210,7 @@ GtkNSSKeyPairDialogs::DisplayGeneratingKeypairInfo (nsIInterfaceRequestor *ctx,
}
g_source_remove (timeout_id);
+ end_busy (dialog);
gtk_widget_destroy (dialog);
delete helper;
return NS_OK;
@@ -561,6 +583,7 @@ NS_IMETHODIMP KeyPairHelperWindow::UpdateCommands(const nsAString & action)
MOZ_NOT_IMPLEMENTED
}
+#if MOZILLA_SNAPSHOT <= 12
/* DOMString escape (in DOMString str); */
NS_IMETHODIMP KeyPairHelperWindow::Escape(const nsAString & str, nsAString & _retval)
{
@@ -572,6 +595,7 @@ NS_IMETHODIMP KeyPairHelperWindow::Unescape(const nsAString & str, nsAString & _
{
MOZ_NOT_IMPLEMENTED
}
+#endif
/* [noscript] boolean find (in DOMString str, in boolean caseSensitive, in boolean backwards, in boolean wrapAround, in boolean wholeWord, in boolean searchInFrames, in boolean showDialog); */
NS_IMETHODIMP KeyPairHelperWindow::Find(const nsAString & str, PRBool caseSensitive, PRBool backwards, PRBool wrapAround, PRBool wholeWord, PRBool searchInFrames, PRBool showDialog, PRBool *_retval)
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index 50c75484c..28b1a3b23 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -52,7 +52,11 @@
#include <nsIPasswordManager.h>
#include <nsIPassword.h>
#include <nsICookie.h>
+#if MOZILLA_SNAPSHOT > 12
+#include <nsICookieManager.h>
+#else
#include <nsCCookieManager.h>
+#endif
#include <nsCPasswordManager.h>
#include <nsString.h>
#include <nsILocalFile.h>