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

Unified Diff: views/widget/widget_gtk.cc

Issue 118102: Fixes a couple of bugs encountered in getting info bubbles to work:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « chrome/browser/views/info_bubble.cc ('k') | views/window/window_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget_gtk.cc
===================================================================
--- views/widget/widget_gtk.cc (revision 17379)
+++ views/widget/widget_gtk.cc (working copy)
@@ -163,6 +163,10 @@
parent_widget->AddChild(widget_);
parent_widget->PositionChild(widget_, bounds.x(), bounds.y(),
bounds.width(), bounds.height());
+ } else {
+ if (bounds.width() > 0 && bounds.height() > 0)
+ gtk_window_resize(GTK_WINDOW(widget_), bounds.width(), bounds.height());
+ gtk_window_move(GTK_WINDOW(widget_), bounds.x(), bounds.y());
}
}
@@ -364,7 +368,6 @@
SetViewForNative(child_widget_parent_, this);
}
- gtk_widget_show(widget_);
}
void WidgetGtk::OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation) {
« no previous file with comments | « chrome/browser/views/info_bubble.cc ('k') | views/window/window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698