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/tabs/tab_strip_gtk.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/tabs/tab_strip_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/tabs/tab_strip_gtk.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/gtk/tabs/tab_strip_gtk.cc index 8302119..cb63413 100644 --- a/chrome/browser/gtk/tabs/tab_strip_gtk.cc +++ b/chrome/browser/gtk/tabs/tab_strip_gtk.cc @@ -562,17 +562,17 @@ void TabStripGtk::Init() { -1 }; GtkDndUtil::SetDestTargetList(tabstrip_.get(), targets); - g_signal_connect(G_OBJECT(tabstrip_.get()), "expose-event", + g_signal_connect(tabstrip_.get(), "expose-event", G_CALLBACK(OnExpose), this); - g_signal_connect(G_OBJECT(tabstrip_.get()), "size-allocate", - G_CALLBACK(OnSizeAllocate), this); - g_signal_connect(G_OBJECT(tabstrip_.get()), "drag-motion", + g_signal_connect(tabstrip_.get(), "size-allocate", + G_CALLBACK(OnSizeAllocate), this); + g_signal_connect(tabstrip_.get(), "drag-motion", G_CALLBACK(OnDragMotion), this); - g_signal_connect(G_OBJECT(tabstrip_.get()), "drag-drop", + g_signal_connect(tabstrip_.get(), "drag-drop", G_CALLBACK(OnDragDrop), this); - g_signal_connect(G_OBJECT(tabstrip_.get()), "drag-leave", + g_signal_connect(tabstrip_.get(), "drag-leave", G_CALLBACK(OnDragLeave), this); - g_signal_connect(G_OBJECT(tabstrip_.get()), "drag-data-received", + g_signal_connect(tabstrip_.get(), "drag-data-received", G_CALLBACK(OnDragDataReceived), this); newtab_button_.reset(MakeNewTabButton()); @@ -1526,7 +1526,7 @@ void TabStripGtk::DropInfo::CreateContainer() { container = gtk_window_new(GTK_WINDOW_POPUP); SetContainerColorMap(); gtk_widget_set_app_paintable(container, TRUE); - g_signal_connect(G_OBJECT(container), "expose-event", + g_signal_connect(container, "expose-event", G_CALLBACK(OnExposeEvent), this); gtk_widget_add_events(container, GDK_STRUCTURE_MASK); gtk_window_move(GTK_WINDOW(container), 0, 0); @@ -1853,7 +1853,7 @@ CustomDrawButton* TabStripGtk::MakeNewTabButton() { // Let the middle mouse button initiate clicks as well. gtk_util::SetButtonTriggersNavigation(button->widget()); - g_signal_connect(G_OBJECT(button->widget()), "clicked", + g_signal_connect(button->widget(), "clicked", G_CALLBACK(OnNewTabClicked), this); GTK_WIDGET_UNSET_FLAGS(button->widget(), GTK_CAN_FOCUS); gtk_fixed_put(GTK_FIXED(tabstrip_.get()), button->widget(), 0, 0); |