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

Unified Diff: chrome/browser/ui/libgtkui/gtk_status_icon.cc

Issue 2453243002: Gtk3 UI: Rename files in libgtkui containing gtk2 in their name (Closed)
Patch Set: Fix git cl format mistake Created 4 years, 2 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/libgtkui/gtk_status_icon.h ('k') | chrome/browser/ui/libgtkui/gtk_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/gtk_status_icon.cc
diff --git a/chrome/browser/ui/libgtkui/gtk2_status_icon.cc b/chrome/browser/ui/libgtkui/gtk_status_icon.cc
similarity index 84%
rename from chrome/browser/ui/libgtkui/gtk2_status_icon.cc
rename to chrome/browser/ui/libgtkui/gtk_status_icon.cc
index b3e692c4be61fb5705a32c5a736f5d859426d14c..d97899ba019b67b70fd85df540f254ac95fffbc1 100644
--- a/chrome/browser/ui/libgtkui/gtk2_status_icon.cc
+++ b/chrome/browser/ui/libgtkui/gtk_status_icon.cc
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/libgtkui/gtk2_status_icon.h"
+#include "chrome/browser/ui/libgtkui/gtk_status_icon.h"
#include <gtk/gtk.h>
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/libgtkui/app_indicator_icon_menu.h"
-#include "chrome/browser/ui/libgtkui/skia_utils_gtk2.h"
+#include "chrome/browser/ui/libgtkui/skia_utils_gtk.h"
#include "ui/base/models/menu_model.h"
#include "ui/gfx/image/image_skia.h"
@@ -23,9 +23,9 @@ Gtk2StatusIcon::Gtk2StatusIcon(const gfx::ImageSkia& image,
g_object_unref(pixbuf);
g_signal_connect(gtk_status_icon_, "activate", G_CALLBACK(OnClickThunk),
- this);
+ this);
g_signal_connect(gtk_status_icon_, "popup_menu",
- G_CALLBACK(OnContextMenuRequestedThunk), this);
+ G_CALLBACK(OnContextMenuRequestedThunk), this);
SetToolTip(tool_tip);
}
@@ -65,12 +65,8 @@ void Gtk2StatusIcon::OnContextMenuRequested(GtkStatusIcon* status_icon,
guint button,
guint32 activate_time) {
if (menu_.get()) {
- gtk_menu_popup(menu_->GetGtkMenu(),
- NULL,
- NULL,
- gtk_status_icon_position_menu,
- gtk_status_icon_,
- button,
+ gtk_menu_popup(menu_->GetGtkMenu(), NULL, NULL,
+ gtk_status_icon_position_menu, gtk_status_icon_, button,
activate_time);
}
}
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_status_icon.h ('k') | chrome/browser/ui/libgtkui/gtk_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698