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

Unified Diff: chrome/browser/ui/gtk/status_bubble_gtk.cc

Issue 8588068: GTK: Create the start of a compatibility header wrapping deprecated methods. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to ToT and remove views/ cleanups. Created 9 years, 1 month 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/browser/ui/gtk/status_bubble_gtk.cc
diff --git a/chrome/browser/ui/gtk/status_bubble_gtk.cc b/chrome/browser/ui/gtk/status_bubble_gtk.cc
index f081ff76c7d4dd2169789a7a160bd4fe4fc259c7..7d113ea1b0cbcce66ce8573be7f7975ed633adf0 100644
--- a/chrome/browser/ui/gtk/status_bubble_gtk.cc
+++ b/chrome/browser/ui/gtk/status_bubble_gtk.cc
@@ -18,6 +18,7 @@
#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/notification_source.h"
#include "ui/base/animation/slide_animation.h"
+#include "ui/base/gtk/gtk_compat.h"
#include "ui/base/gtk/gtk_hig_constants.h"
#include "ui/base/text/text_elider.h"
@@ -93,7 +94,7 @@ void StatusBubbleGtk::SetStatusTextToURL() {
GtkWidget* parent = gtk_widget_get_parent(container_.get());
// It appears that parent can be NULL (probably only during shutdown).
- if (!parent || !GTK_WIDGET_REALIZED(parent))
+ if (!parent || !gtk_widget_get_realized(parent))
return;
int desired_width = parent->allocation.width;
@@ -166,11 +167,11 @@ void StatusBubbleGtk::MouseMoved(
last_mouse_location_ = location;
last_mouse_left_content_ = left_content;
- if (!GTK_WIDGET_REALIZED(container_.get()))
+ if (!gtk_widget_get_realized(container_.get()))
return;
GtkWidget* parent = gtk_widget_get_parent(container_.get());
- if (!parent || !GTK_WIDGET_REALIZED(parent))
+ if (!parent || !gtk_widget_get_realized(parent))
return;
int old_y_offset = y_offset_;
@@ -181,7 +182,7 @@ void StatusBubbleGtk::MouseMoved(
y_offset_ = 0;
} else {
GtkWidget* toplevel = gtk_widget_get_toplevel(container_.get());
- if (!toplevel || !GTK_WIDGET_REALIZED(toplevel))
+ if (!toplevel || !gtk_widget_get_realized(toplevel))
return;
bool ltr = !base::i18n::IsRTL();
« no previous file with comments | « chrome/browser/ui/gtk/ssl_client_certificate_selector.cc ('k') | chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698