aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiers Cornwell <piers@gnome.org>2004-03-31 06:14:35 +0800
committerPiers Cornwell <piers@src.gnome.org>2004-03-31 06:14:35 +0800
commit4b16bfef4ab081d2297d40d13084ba469eb9f603 (patch)
tree619e81d7f7504006044e26f53dbb664667a1366b
parentea2e6c8997a521817ed13ef6ea66ba2791fa2e6b (diff)
downloadgsoc2013-epiphany-4b16bfef4ab081d2297d40d13084ba469eb9f603.tar
gsoc2013-epiphany-4b16bfef4ab081d2297d40d13084ba469eb9f603.tar.gz
gsoc2013-epiphany-4b16bfef4ab081d2297d40d13084ba469eb9f603.tar.bz2
gsoc2013-epiphany-4b16bfef4ab081d2297d40d13084ba469eb9f603.tar.lz
gsoc2013-epiphany-4b16bfef4ab081d2297d40d13084ba469eb9f603.tar.xz
gsoc2013-epiphany-4b16bfef4ab081d2297d40d13084ba469eb9f603.tar.zst
gsoc2013-epiphany-4b16bfef4ab081d2297d40d13084ba469eb9f603.zip
Don't allow a font size less than 1.
2004-03-30 Piers Cornwell <piers@gnome.org> * data/glade/prefs-dialog.glade: * embed/mozilla/mozilla-notifiers.cpp: (mozilla_font_size_notifier): Don't allow a font size less than 1.
-rw-r--r--ChangeLog7
-rw-r--r--data/glade/prefs-dialog.glade10
-rw-r--r--embed/mozilla/mozilla-notifiers.cpp2
3 files changed, 13 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 0bfb69920..9f840de7a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-03-30 Piers Cornwell <piers@gnome.org>
+
+ * data/glade/prefs-dialog.glade:
+ * embed/mozilla/mozilla-notifiers.cpp: (mozilla_font_size_notifier):
+
+ Don't allow a font size less than 1.
+
2004-03-30 Christian Persch <chpe@cvs.gnome.org>
* data/ui/epiphany-ui.xml:
diff --git a/data/glade/prefs-dialog.glade b/data/glade/prefs-dialog.glade
index 7bfc01a52..03966ceb9 100644
--- a/data/glade/prefs-dialog.glade
+++ b/data/glade/prefs-dialog.glade
@@ -595,11 +595,11 @@
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">0</property>
- <property name="numeric">False</property>
+ <property name="numeric">True</property>
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
- <property name="adjustment">1 0 100 1 10 10</property>
+ <property name="adjustment">1 1 100 1 10 10</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -692,11 +692,11 @@
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">0</property>
- <property name="numeric">False</property>
+ <property name="numeric">True</property>
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
- <property name="adjustment">0 0 100 1 10 10</property>
+ <property name="adjustment">0 1 100 1 10 10</property>
</widget>
<packing>
<property name="left_attach">2</property>
@@ -714,7 +714,7 @@
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
<property name="digits">0</property>
- <property name="numeric">False</property>
+ <property name="numeric">True</property>
<property name="update_policy">GTK_UPDATE_ALWAYS</property>
<property name="snap_to_ticks">False</property>
<property name="wrap">False</property>
diff --git a/embed/mozilla/mozilla-notifiers.cpp b/embed/mozilla/mozilla-notifiers.cpp
index 4372219a4..83c38b5e8 100644
--- a/embed/mozilla/mozilla-notifiers.cpp
+++ b/embed/mozilla/mozilla-notifiers.cpp
@@ -268,7 +268,7 @@ mozilla_font_size_notifier (GConfClient *client,
sprintf (key, "font.%s", pref);
- mozilla_prefs_set_int (key, eel_gconf_get_integer (entry->key));
+ mozilla_prefs_set_int (key, MAX (eel_gconf_get_integer (entry->key), 1));
}
static void