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

Unified Diff: views/controls/combobox/native_combobox_gtk.cc

Issue 198010: * Fix seg fault in deleting view from RemoveTabAtIndex... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: * Fix seg fault in deleting view from RemoveTabAtIndex... Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: views/controls/combobox/native_combobox_gtk.cc
===================================================================
--- views/controls/combobox/native_combobox_gtk.cc (revision 25669)
+++ views/controls/combobox/native_combobox_gtk.cc (working copy)
@@ -114,17 +114,17 @@
G_CALLBACK(CallChanged), this);
NativeControlCreated(widget);
+}
+void NativeComboboxGtk::NativeControlCreated(GtkWidget* native_control) {
+ NativeControlGtk::NativeControlCreated(native_control);
+
// Set the data from combobox
UpdateFromModel();
// and show the 1st item by default.
- gtk_combo_box_set_active(GTK_COMBO_BOX(widget), 0);
+ gtk_combo_box_set_active(GTK_COMBO_BOX(native_control), 0);
}
-void NativeComboboxGtk::NativeControlCreated(GtkWidget* native_control) {
- NativeControlGtk::NativeControlCreated(native_control);
-}
-
////////////////////////////////////////////////////////////////////////////////
// NativeComboboxGtk, private:
void NativeComboboxGtk::SelectionChanged() {

Powered by Google App Engine
This is Rietveld 408576698