From d8e7a54e37ed11d60f7d8dd8f5d5732cffe94b95 Mon Sep 17 00:00:00 2001 From: "erg@chromium.org" Date: Wed, 10 Feb 2010 18:58:54 +0000 Subject: GTK: Implements the content settings window and the minor changes to the options dialog. The "Exceptions" dialogs are still not implemented; they're the next step but this changelist is already getting pretty huge. BUG=35178 TEST=none Review URL: http://codereview.chromium.org/602005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38642 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/gtk_util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/common/gtk_util.h') diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h index f1bc1b6..93533fd 100644 --- a/chrome/common/gtk_util.h +++ b/chrome/common/gtk_util.h @@ -94,6 +94,12 @@ void GetWidgetSizeFromCharacters(GtkWidget* widget, double width_chars, void SetWindowSizeFromResources(GtkWindow* window, int width_id, int height_id, bool resizable); +// Places |window| approximately over center of |parent|, it also moves window +// to parent's desktop. Use this only for non-modal dialogs, such as the +// options window and content settings window; otherwise you should be using +// transient_for. +void CenterOverWindow(GtkWindow* window, GtkWindow* parent); + // Remove all children from this container. void RemoveAllChildren(GtkWidget* container); -- cgit v1.1