diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-04-06 22:29:55 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-04-06 22:29:55 +0800 |
commit | d4c3f7dbac768d26ac755ed20cd0d6fe0d1e7be3 (patch) | |
tree | aaa58108307c134edd4a2d19545c37d2252cb599 /embed/ephy-embed-persist.c | |
parent | 7057c3852b199c8d523233c4e669acfae1246709 (diff) | |
download | gsoc2013-epiphany-d4c3f7dbac768d26ac755ed20cd0d6fe0d1e7be3.tar gsoc2013-epiphany-d4c3f7dbac768d26ac755ed20cd0d6fe0d1e7be3.tar.gz gsoc2013-epiphany-d4c3f7dbac768d26ac755ed20cd0d6fe0d1e7be3.tar.bz2 gsoc2013-epiphany-d4c3f7dbac768d26ac755ed20cd0d6fe0d1e7be3.tar.lz gsoc2013-epiphany-d4c3f7dbac768d26ac755ed20cd0d6fe0d1e7be3.tar.xz gsoc2013-epiphany-d4c3f7dbac768d26ac755ed20cd0d6fe0d1e7be3.tar.zst gsoc2013-epiphany-d4c3f7dbac768d26ac755ed20cd0d6fe0d1e7be3.zip |
Fix for MOZILLA_INTERNAL_API change, and for 64bit downloader change.
2005-04-06 Christian Persch <chpe@cvs.gnome.org>
* configure.ac:
* embed/downloader-view.c: (update_download_row):
* embed/ephy-download.c:
* embed/ephy-download.h:
* embed/ephy-embed-persist.c: (ephy_embed_persist_set_max_size),
(ephy_embed_persist_set_property),
(ephy_embed_persist_get_property), (ephy_embed_persist_class_init):
* embed/ephy-embed-persist.h:
* embed/mozilla/ContentHandler.h:
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyContentPolicy.cpp:
* embed/mozilla/EphyHeaderSniffer.h:
* embed/mozilla/EphyHistoryListener.cpp:
* embed/mozilla/EphySidebar.cpp:
* embed/mozilla/EphySingle.cpp:
* embed/mozilla/EphyUtils.cpp:
* embed/mozilla/EventContext.cpp:
* embed/mozilla/FilePicker.cpp:
* embed/mozilla/FilePicker.h:
* embed/mozilla/GlobalHistory.cpp:
* embed/mozilla/GtkNSSClientAuthDialogs.cpp:
* embed/mozilla/GtkNSSDialogs.cpp:
* embed/mozilla/MozDownload.cpp:
* embed/mozilla/MozDownload.h:
* embed/mozilla/mozilla-download.cpp:
* embed/mozilla/mozilla-embed-single.cpp:
* embed/mozilla/mozilla-embed.cpp:
Fix for MOZILLA_INTERNAL_API change, and for 64bit downloader change.
Diffstat (limited to 'embed/ephy-embed-persist.c')
-rw-r--r-- | embed/ephy-embed-persist.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/embed/ephy-embed-persist.c b/embed/ephy-embed-persist.c index cd065d628..5af85be1b 100644 --- a/embed/ephy-embed-persist.c +++ b/embed/ephy-embed-persist.c @@ -23,6 +23,7 @@ #include "ephy-embed-persist.h" #include "mozilla-embed-persist.h" +#include "ephy-embed-type-builtins.h" #include "ephy-debug.h" #include <gtk/gtkmain.h> @@ -51,7 +52,7 @@ struct _EphyEmbedPersistPrivate char *fc_title; char *persist_key; EphyEmbed *embed; - long max_size; + gint64 max_size; EphyEmbedPersistFlags flags; GtkWindow *fc_parent; guint32 user_time; @@ -201,7 +202,7 @@ ephy_embed_persist_set_flags (EphyEmbedPersist *persist, **/ void ephy_embed_persist_set_max_size (EphyEmbedPersist *persist, - long value) + gint64 value) { g_return_if_fail (EPHY_IS_EMBED_PERSIST (persist)); @@ -351,7 +352,7 @@ ephy_embed_persist_get_flags (EphyEmbedPersist *persist) * * Return value: the maximum size of @persist's requested download, in bytes **/ -long +gint64 ephy_embed_persist_get_max_size (EphyEmbedPersist *persist) { g_return_val_if_fail (EPHY_IS_EMBED_PERSIST (persist), 0); @@ -432,7 +433,7 @@ ephy_embed_persist_set_property (GObject *object, ephy_embed_persist_set_fc_parent (persist, g_value_get_object (value)); break; case PROP_FLAGS: - ephy_embed_persist_set_flags (persist, g_value_get_int (value)); + ephy_embed_persist_set_flags (persist, g_value_get_flags (value)); break; case PROP_MAX_SIZE: ephy_embed_persist_set_max_size (persist, g_value_get_long (value)); @@ -472,7 +473,7 @@ ephy_embed_persist_get_property (GObject *object, g_value_set_object (value, ephy_embed_persist_get_fc_parent (persist)); break; case PROP_FLAGS: - g_value_set_int (value, ephy_embed_persist_get_flags (persist)); + g_value_set_flags (value, ephy_embed_persist_get_flags (persist)); break; case PROP_MAX_SIZE: g_value_set_long (value, ephy_embed_persist_get_max_size (persist)); @@ -601,22 +602,21 @@ ephy_embed_persist_class_init (EphyEmbedPersistClass *klass) g_object_class_install_property (object_class, PROP_FLAGS, - g_param_spec_int ("flags", + g_param_spec_flags ("flags", "Flags", "Flags", - 0, - G_MAXINT, + EPHY_TYPE_EMBED_PERSIST_FLAGS, 0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_MAX_SIZE, - g_param_spec_long ("max_size", + g_param_spec_int64 ("max_size", "Maxsize", "Maximum size of the file", - 0, - G_MAXLONG, - 0, + -1, + G_MAXINT64, + -1, G_PARAM_READWRITE)); g_object_class_install_property (object_class, |