epiphany r8206 - branches/gnome-2-22/embed/mozilla
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8206 - branches/gnome-2-22/embed/mozilla
- Date: Wed, 9 Apr 2008 14:45:02 +0100 (BST)
Author: chpe
Date: Wed Apr 9 14:45:01 2008
New Revision: 8206
URL: http://svn.gnome.org/viewvc/epiphany?rev=8206&view=rev
Log:
Cleanup
Modified:
branches/gnome-2-22/embed/mozilla/ContentHandler.cpp
branches/gnome-2-22/embed/mozilla/ContentHandler.h
Modified: branches/gnome-2-22/embed/mozilla/ContentHandler.cpp
==============================================================================
--- branches/gnome-2-22/embed/mozilla/ContentHandler.cpp (original)
+++ branches/gnome-2-22/embed/mozilla/ContentHandler.cpp Wed Apr 9 14:45:01 2008
@@ -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 @@
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_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::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));
Modified: branches/gnome-2-22/embed/mozilla/ContentHandler.h
==============================================================================
--- branches/gnome-2-22/embed/mozilla/ContentHandler.h (original)
+++ branches/gnome-2-22/embed/mozilla/ContentHandler.h Wed Apr 9 14:45:01 2008
@@ -59,9 +59,9 @@
virtual ~GContentHandler();
NS_METHOD MIMEDoAction ();
- ContentAction mAction;
private:
+ static void ResponseCallback (GtkWidget*, int, GContentHandler*);
NS_METHOD Init ();
NS_METHOD MIMEInitiateAction ();
@@ -76,6 +76,7 @@
nsCString mUrl;
nsCString mMimeType;
PRUint32 mUserTime;
+ ContentAction mAction;
};
#endif /* CONTENT_HANDLER_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]