aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-04-09 21:45:01 +0800
committerChristian Persch <chpe@src.gnome.org>2008-04-09 21:45:01 +0800
commitd0187a5fa417827891126ecf0d43097cda3df9fb (patch)
tree8280b0224de6438d89033ce9eeac888fdacd1561 /embed/mozilla
parent54ee29b111c482b2540afeca61bbb1733abade14 (diff)
downloadgsoc2013-epiphany-d0187a5fa417827891126ecf0d43097cda3df9fb.tar
gsoc2013-epiphany-d0187a5fa417827891126ecf0d43097cda3df9fb.tar.gz
gsoc2013-epiphany-d0187a5fa417827891126ecf0d43097cda3df9fb.tar.bz2
gsoc2013-epiphany-d0187a5fa417827891126ecf0d43097cda3df9fb.tar.lz
gsoc2013-epiphany-d0187a5fa417827891126ecf0d43097cda3df9fb.tar.xz
gsoc2013-epiphany-d0187a5fa417827891126ecf0d43097cda3df9fb.tar.zst
gsoc2013-epiphany-d0187a5fa417827891126ecf0d43097cda3df9fb.zip
Cleanup
svn path=/branches/gnome-2-22/; revision=8206
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/ContentHandler.cpp17
-rw-r--r--embed/mozilla/ContentHandler.h3
2 files changed, 12 insertions, 8 deletions
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp
index abe3401e9..82be1f19a 100644
--- a/embed/mozilla/ContentHandler.cpp
+++ b/embed/mozilla/ContentHandler.cpp
@@ -67,7 +67,10 @@
* content handler.
*/
GContentHandler::GContentHandler()
-: mUserTime(0)
+: mHelperApp(NULL),
+ mPermission(EPHY_MIME_PERMISSION_UNKNOWN),
+ mUserTime(0),
+ mAction(CONTENT_ACTION_NONE)
{
LOG ("GContentHandler ctor (%p)", this);
}
@@ -223,10 +226,10 @@ NS_METHOD GContentHandler::Init ()
return NS_OK;
}
-static void
-response_cb (GtkWidget *dialog,
- int response,
- GContentHandler *self)
+/* static */ void
+GContentHandler::ResponseCallback (GtkWidget *dialog,
+ int response,
+ GContentHandler *self)
{
gtk_widget_destroy (dialog);
@@ -348,7 +351,7 @@ NS_METHOD GContentHandler::MIMEConfirmAction ()
NS_ADDREF_THIS();
g_signal_connect_data (dialog, "response",
- G_CALLBACK (response_cb), this,
+ G_CALLBACK (ResponseCallback), this,
(GClosureNotify) release_cb, (GConnectFlags) 0);
/* FIXME: should find a way to get the user time of the user action which
@@ -415,7 +418,7 @@ NS_METHOD GContentHandler::MIMEInitiateAction (void)
NS_METHOD GContentHandler::MIMEDoAction (void)
{
/* This is okay, since we either clicked on a button, or we get 0 */
- mUserTime = gtk_get_current_event_time ();
+ mUserTime = (PRUint32) gtk_get_current_event_time ();
nsCOMPtr<nsIMIMEInfo> mimeInfo;
mLauncher->GetMIMEInfo(getter_AddRefs(mimeInfo));
diff --git a/embed/mozilla/ContentHandler.h b/embed/mozilla/ContentHandler.h
index 366aae482..370db37d6 100644
--- a/embed/mozilla/ContentHandler.h
+++ b/embed/mozilla/ContentHandler.h
@@ -59,9 +59,9 @@ class GContentHandler : public nsIHelperAppLauncherDialog
virtual ~GContentHandler();
NS_METHOD MIMEDoAction ();
- ContentAction mAction;
private:
+ static void ResponseCallback (GtkWidget*, int, GContentHandler*);
NS_METHOD Init ();
NS_METHOD MIMEInitiateAction ();
@@ -76,6 +76,7 @@ class GContentHandler : public nsIHelperAppLauncherDialog
nsCString mUrl;
nsCString mMimeType;
PRUint32 mUserTime;
+ ContentAction mAction;
};
#endif /* CONTENT_HANDLER_H */