summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-09 22:57:23 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-09 22:57:23 +0000
commitcdbb8e420ace50fb0fe7bf57f82f000b45ed09cd (patch)
tree33dab045fdd6f9dc1ec9ab209cb05ef11bdcac84 /chrome/common/gtk_util.cc
parent8aea979e3a6cf2c5dc9f508ab247431834d8aac2 (diff)
downloadchromium_src-cdbb8e420ace50fb0fe7bf57f82f000b45ed09cd.zip
chromium_src-cdbb8e420ace50fb0fe7bf57f82f000b45ed09cd.tar.gz
chromium_src-cdbb8e420ace50fb0fe7bf57f82f000b45ed09cd.tar.bz2
Revert "Use gtk-cursor-blink from GtkSettings"
This reverts commit r25797 due to Valgrind errors. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.cc')
-rw-r--r--chrome/common/gtk_util.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/chrome/common/gtk_util.cc b/chrome/common/gtk_util.cc
index 92a6676..e026877 100644
--- a/chrome/common/gtk_util.cc
+++ b/chrome/common/gtk_util.cc
@@ -354,19 +354,11 @@ GtkWidget* IndentWidget(GtkWidget* content) {
void InitRendererPrefsFromGtkSettings(RendererPreferences* prefs) {
DCHECK(prefs);
- // From http://library.gnome.org/devel/gtk/unstable/GtkSettings.html, this is
- // the default value for gtk-cursor-blink-time.
- static const gint kGtkDefaultCursorBlinkTime = 1200;
-
- gint cursor_blink_time = kGtkDefaultCursorBlinkTime;
- gboolean cursor_blink = TRUE;
gint antialias = 0;
gint hinting = 0;
gchar* hint_style = NULL;
gchar* rgba_style = NULL;
g_object_get(gtk_settings_get_default(),
- "gtk-cursor-blink-time", &cursor_blink_time,
- "gtk-cursor-blink", &cursor_blink,
"gtk-xft-antialias", &antialias,
"gtk-xft-hinting", &hinting,
"gtk-xft-hintstyle", &hint_style,
@@ -379,15 +371,6 @@ void InitRendererPrefsFromGtkSettings(RendererPreferences* prefs) {
prefs->subpixel_rendering =
RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT;
- if (cursor_blink) {
- // Dividing by 2*1000ms follows the WebKit GTK port and makes the blink
- // frequency appear similar to the omnibox. Without this the blink is too
- // slow.
- prefs->caret_blink_interval = cursor_blink_time / 2000.;
- } else {
- prefs->caret_blink_interval = 0;
- }
-
// g_object_get() doesn't tell us whether the properties were present or not,
// but if they aren't (because gnome-settings-daemon isn't running), we'll get
// NULL values for the strings.