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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_util.cc

Issue 1234223005: Initial gtk3 support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Silence gtk memory leak Created 5 years, 3 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/ui/libgtk2ui/gtk2_util.h ('k') | chrome/browser/ui/libgtk2ui/menu_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/gtk2_util.cc
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_util.cc b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
index 8bac9cb3dc39151dad6ab40234337680cb4f2ad0..ce2d8f72912b5d50d2cd7372a8241d16ee4a1a9a 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_util.cc
+++ b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
@@ -71,11 +71,6 @@ std::string GetDesktopName(base::Environment* env) {
#endif
}
-void SetAlwaysShowImage(GtkWidget* image_menu_item) {
- gtk_image_menu_item_set_always_show_image(
- GTK_IMAGE_MENU_ITEM(image_menu_item), TRUE);
-}
-
guint GetGdkKeyCodeForAccelerator(const ui::Accelerator& accelerator) {
// The second parameter is false because accelerator keys are expressed in
// terms of the non-shift-modified key.
@@ -135,15 +130,4 @@ void ClearAuraTransientParent(GtkWidget* dialog) {
g_object_set_data(G_OBJECT(dialog), kAuraTransientParent, NULL);
}
-GtkStateType GetGtkState(ui::NativeTheme::State state) {
- switch (state) {
- case ui::NativeTheme::kDisabled: return GTK_STATE_INSENSITIVE;
- case ui::NativeTheme::kHovered: return GTK_STATE_PRELIGHT;
- case ui::NativeTheme::kNormal: return GTK_STATE_NORMAL;
- case ui::NativeTheme::kPressed: return GTK_STATE_ACTIVE;
- case ui::NativeTheme::kNumStates: NOTREACHED();
- }
- return GTK_STATE_NORMAL;
-}
-
} // namespace libgtk2ui
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_util.h ('k') | chrome/browser/ui/libgtk2ui/menu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698