diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-10 17:47:41 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-10 17:47:41 +0000 |
commit | e5a2acec061119fab8f5b0a05e79702ae03670dc (patch) | |
tree | 24cfd3e9144b9116a060187e5525d21e74363117 /chrome/browser/autocomplete | |
parent | 4f0872bb0ff3bfaca9f765c64a6d76598daf4ed4 (diff) | |
download | chromium_src-e5a2acec061119fab8f5b0a05e79702ae03670dc.zip chromium_src-e5a2acec061119fab8f5b0a05e79702ae03670dc.tar.gz chromium_src-e5a2acec061119fab8f5b0a05e79702ae03670dc.tar.bz2 |
Remove redundant casts in g_signal_connect() throughout all gtk code we have.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/600033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc index 39815fa..102854d 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc +++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc @@ -574,9 +574,9 @@ void AutocompleteEditViewGtk::SetBaseColor() { GdkColor average_color = gtk_util::AverageColors( style->text[GTK_STATE_NORMAL], style->base[GTK_STATE_NORMAL]); - g_object_set(G_OBJECT(faded_text_tag_), "foreground-gdk", + g_object_set(faded_text_tag_, "foreground-gdk", &average_color, NULL); - g_object_set(G_OBJECT(normal_text_tag_), "foreground-gdk", + g_object_set(normal_text_tag_, "foreground-gdk", &style->text[GTK_STATE_NORMAL], NULL); } else { #if defined(TOOLKIT_VIEWS) @@ -589,8 +589,8 @@ void AutocompleteEditViewGtk::SetBaseColor() { &LocationBarViewGtk::kBackgroundColorByLevel[scheme_security_level_]); #endif - g_object_set(G_OBJECT(faded_text_tag_), "foreground", kTextBaseColor, NULL); - g_object_set(G_OBJECT(normal_text_tag_), "foreground", "#000000", NULL); + g_object_set(faded_text_tag_, "foreground", kTextBaseColor, NULL); + g_object_set(normal_text_tag_, "foreground", "#000000", NULL); } } |