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

Unified Diff: chrome/common/gtk_util.h

Issue 534006: linux: set a minimum size for dialogs based on locale resources (Closed)
Patch Set: Created 10 years, 11 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: chrome/common/gtk_util.h
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index f92c3adfd224f04ee547563f320a791e44a62f12..1e7c63623e05d9def2327adf11f10a86c3ab96f6 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -81,6 +81,13 @@ void GetWidgetSizeFromResources(GtkWidget* widget, int width_chars,
void GetWidgetSizeFromCharacters(GtkWidget* widget, double width_chars,
double height_lines, int* width, int* height);
+// As above, but a convenience method for configuring dialog width.
+// |resizable| also controls whether the dialog will be resizable
+// (this info is also necessary for getting the width-setting code
+// right).
+void SetWindowWidthFromResources(GtkWindow* window, int resource_id,
+ bool resizable);
+
// Remove all children from this container.
void RemoveAllChildren(GtkWidget* container);

Powered by Google App Engine
This is Rietveld 408576698