aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-persist.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-02-25 07:44:58 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-02-25 07:44:58 +0800
commit9fb6164dd427630f8e72d69113c48a78dd449bc8 (patch)
treebb8614a2c6a04bbcb05be59c1ed525abc77d9f83 /embed/ephy-embed-persist.c
parentd055989e9fc45f0849de45ec00e02802e6769dc0 (diff)
downloadgsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar.gz
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar.bz2
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar.lz
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar.xz
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.tar.zst
gsoc2013-epiphany-9fb6164dd427630f8e72d69113c48a78dd449bc8.zip
Make max size property use long / bytes.
2004-02-25 Marco Pesenti Gritti <marco@gnome.org> * embed/ephy-embed-persist.c: (ephy_embed_persist_set_max_size), (ephy_embed_persist_set_property), (ephy_embed_persist_get_property), (ephy_embed_persist_init), (ephy_embed_persist_class_init): * embed/ephy-embed-persist.h: Make max size property use long / bytes. * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): Correct to use bytes. * embed/mozilla/EphyHeaderSniffer.cpp: * embed/mozilla/MozDownload.cpp: * embed/mozilla/MozDownload.h: * embed/mozilla/mozilla-embed-persist.cpp: Actually respect the max_size property.
Diffstat (limited to 'embed/ephy-embed-persist.c')
-rw-r--r--embed/ephy-embed-persist.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/embed/ephy-embed-persist.c b/embed/ephy-embed-persist.c
index 7197fa6be..4fed96cbb 100644
--- a/embed/ephy-embed-persist.c
+++ b/embed/ephy-embed-persist.c
@@ -50,7 +50,7 @@ struct EphyEmbedPersistPrivate
char *fc_title;
char *persist_key;
EphyEmbed *embed;
- int max_size;
+ long max_size;
EmbedPersistFlags flags;
GtkWindow *fc_parent;
};
@@ -135,7 +135,7 @@ ephy_embed_persist_set_flags (EphyEmbedPersist *persist,
void
ephy_embed_persist_set_max_size (EphyEmbedPersist *persist,
- int value)
+ long value)
{
g_return_if_fail (EPHY_IS_EMBED_PERSIST (persist));
@@ -250,7 +250,7 @@ ephy_embed_persist_set_property (GObject *object,
ephy_embed_persist_set_flags (persist, g_value_get_int (value));
break;
case PROP_MAX_SIZE:
- ephy_embed_persist_set_max_size (persist, g_value_get_int (value));
+ ephy_embed_persist_set_max_size (persist, g_value_get_long (value));
break;
case PROP_PERSISTKEY:
ephy_embed_persist_set_persist_key (persist, g_value_get_string (value));
@@ -287,7 +287,7 @@ ephy_embed_persist_get_property (GObject *object,
g_value_set_int (value, ephy_embed_persist_get_flags (persist));
break;
case PROP_MAX_SIZE:
- g_value_set_int (value, ephy_embed_persist_get_max_size (persist));
+ g_value_set_long (value, ephy_embed_persist_get_max_size (persist));
break;
case PROP_PERSISTKEY:
g_value_set_string (value, ephy_embed_persist_get_persist_key (persist));
@@ -310,7 +310,7 @@ ephy_embed_persist_init (EphyEmbedPersist *persist)
persist->priv->fc_title = NULL;
persist->priv->fc_parent = NULL;
persist->priv->flags = 0;
- persist->priv->max_size = 0;
+ persist->priv->max_size = -1;
persist->priv->persist_key = NULL;
}
@@ -395,11 +395,11 @@ ephy_embed_persist_class_init (EphyEmbedPersistClass *klass)
g_object_class_install_property (object_class,
PROP_MAX_SIZE,
- g_param_spec_int ("max_size",
+ g_param_spec_long ("max_size",
"Maxsize",
"Maximum size of the file",
0,
- G_MAXINT,
+ G_MAXLONG,
0,
G_PARAM_READWRITE));