gtk: Add menu_gtk from Chromium.
This commit is contained in:
parent
cde4017c7b
commit
a941c20af4
5 changed files with 1103 additions and 0 deletions
|
@ -59,6 +59,11 @@ GtkWidget* CreateBoldLabel(const std::string& text) {
|
|||
return LeftAlignMisc(label);
|
||||
}
|
||||
|
||||
void SetAlwaysShowImage(GtkWidget* image_menu_item) {
|
||||
gtk_image_menu_item_set_always_show_image(
|
||||
GTK_IMAGE_MENU_ITEM(image_menu_item), TRUE);
|
||||
}
|
||||
|
||||
bool IsWidgetAncestryVisible(GtkWidget* widget) {
|
||||
GtkWidget* parent = widget;
|
||||
while (parent && gtk_widget_get_visible(parent))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue