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/gtk/options/cookies_view.cc | |
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/gtk/options/cookies_view.cc')
-rw-r--r-- | chrome/browser/gtk/options/cookies_view.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/gtk/options/cookies_view.cc b/chrome/browser/gtk/options/cookies_view.cc index 896e3b1..25abfa3 100644 --- a/chrome/browser/gtk/options/cookies_view.cc +++ b/chrome/browser/gtk/options/cookies_view.cc @@ -127,16 +127,16 @@ void CookiesView::Init() { // Filtering controls. GtkWidget* filter_hbox = gtk_hbox_new(FALSE, gtk_util::kControlSpacing); filter_entry_ = gtk_entry_new(); - g_signal_connect(G_OBJECT(filter_entry_), "activate", + g_signal_connect(filter_entry_, "activate", G_CALLBACK(OnFilterEntryActivated), this); - g_signal_connect(G_OBJECT(filter_entry_), "changed", + g_signal_connect(filter_entry_, "changed", G_CALLBACK(OnFilterEntryChanged), this); gtk_box_pack_start(GTK_BOX(filter_hbox), filter_entry_, TRUE, TRUE, 0); filter_clear_button_ = gtk_button_new_with_mnemonic( gtk_util::ConvertAcceleratorsFromWindowsStyle( l10n_util::GetStringUTF8(IDS_COOKIES_CLEAR_SEARCH_LABEL)).c_str()); - g_signal_connect(G_OBJECT(filter_clear_button_), "clicked", + g_signal_connect(filter_clear_button_, "clicked", G_CALLBACK(OnFilterClearButtonClicked), this); gtk_box_pack_start(GTK_BOX(filter_hbox), filter_clear_button_, FALSE, FALSE, 0); @@ -189,14 +189,14 @@ void CookiesView::Init() { title_column, l10n_util::GetStringUTF8( IDS_COOKIES_DOMAIN_COLUMN_HEADER).c_str()); gtk_tree_view_append_column(GTK_TREE_VIEW(tree_), title_column); - g_signal_connect(G_OBJECT(tree_), "key-press-event", + g_signal_connect(tree_, "key-press-event", G_CALLBACK(OnTreeViewKeyPress), this); - g_signal_connect(G_OBJECT(tree_), "row-expanded", + g_signal_connect(tree_, "row-expanded", G_CALLBACK(OnTreeViewRowExpanded), this); selection_ = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree_)); gtk_tree_selection_set_mode(selection_, GTK_SELECTION_SINGLE); - g_signal_connect(G_OBJECT(selection_), "changed", + g_signal_connect(selection_, "changed", G_CALLBACK(OnSelectionChanged), this); // Cookie details. |