Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1395)

Issue 1708013: GTK: make more use of gtk_signal convenience macros/signal registrar. (Closed)

Created:
10 years, 8 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews, ben+cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

GTK: make more use of gtk_signal convenience macros/signal registrar. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=45850

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -60 lines) Patch
M chrome/browser/gtk/hover_controller_gtk.h View 2 chunks +8 lines, -19 lines 0 comments Download
M chrome/browser/gtk/hover_controller_gtk.cc View 3 chunks +6 lines, -9 lines 2 comments Download
M chrome/browser/gtk/tab_contents_drag_source.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/gtk/tab_contents_drag_source.cc View 4 chunks +16 lines, -29 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Evan Stade
10 years, 8 months ago (2010-04-28 02:25:53 UTC) #1
Elliot Glaysher
http://codereview.chromium.org/1708013/diff/1/2 File chrome/browser/gtk/hover_controller_gtk.cc (left): http://codereview.chromium.org/1708013/diff/1/2#oldcode60 chrome/browser/gtk/hover_controller_gtk.cc:60: this); I'm not so sure that these are equivalent. ...
10 years, 8 months ago (2010-04-28 16:39:12 UTC) #2
Evan Stade
http://codereview.chromium.org/1708013/diff/1/2 File chrome/browser/gtk/hover_controller_gtk.cc (left): http://codereview.chromium.org/1708013/diff/1/2#oldcode60 chrome/browser/gtk/hover_controller_gtk.cc:60: this); On 2010/04/28 16:39:13, Elliot Glaysher wrote: > I'm ...
10 years, 8 months ago (2010-04-28 19:00:51 UTC) #3
Elliot Glaysher
10 years, 8 months ago (2010-04-28 19:09:56 UTC) #4
OK, LGTM then.

On Wed, Apr 28, 2010 at 12:00 PM,  <estade@chromium.org> wrote:
>
> http://codereview.chromium.org/1708013/diff/1/2
> File chrome/browser/gtk/hover_controller_gtk.cc (left):
>
> http://codereview.chromium.org/1708013/diff/1/2#oldcode60
> chrome/browser/gtk/hover_controller_gtk.cc:60: this);
> On 2010/04/28 16:39:13, Elliot Glaysher wrote:
>>
>> I'm not so sure that these are equivalent. Previously, you were
>
> disconnecting
>>
>> from button_'s OnButtonDestroyThunk before you called
>
> g_object_unref(button_).
>
> it's not equivalent, but I believe the new code to be correct. Also note
> that the other two signal handlers were not being disconnected when
> HoverControllerGtk was destructed, which is a bug, and is exactly what
> the signal registrar is designed to prevent.
>
>> Now that will happen afterwards. And why disconnect here in the
>
> destroy thunk at
>>
>> all?
>
> yea, not much point since the signal handler will disconnect itself on
> destroy.
>
> http://codereview.chromium.org/1708013/show
>

Powered by Google App Engine
This is Rietveld 408576698