gtk: Add menu_gtk from Chromium.

This commit is contained in:
Cheng Zhao 2014-03-14 20:42:39 +08:00
parent cde4017c7b
commit a941c20af4
5 changed files with 1103 additions and 0 deletions

View file

@ -16,6 +16,11 @@ GtkWidget* LeftAlignMisc(GtkWidget* misc);
// Create a left-aligned label with the given text in bold.
GtkWidget* CreateBoldLabel(const std::string& text);
// Show the image for the given menu item, even if the user's default is to not
// show images. Only to be used for favicons or other menus where the image is
// crucial to its functionality.
void SetAlwaysShowImage(GtkWidget* image_menu_item);
// Checks whether a widget is actually visible, i.e. whether it and all its
// ancestors up to its toplevel are visible.
bool IsWidgetAncestryVisible(GtkWidget* widget);