[rhythmbox] fix compile errors with gtk+ < 2.20.0
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] fix compile errors with gtk+ < 2.20.0
- Date: Thu, 1 Apr 2010 12:00:27 +0000 (UTC)
commit b081631aa5daf77fedf9feb50bda705facc5a9f6
Author: Jonathan Matthew <jonathan d14n org>
Date: Thu Apr 1 21:57:59 2010 +1000
fix compile errors with gtk+ < 2.20.0
lib/gseal-gtk-compat.h | 2 +-
plugins/status-icon/rb-status-icon-plugin.c | 1 +
plugins/visualizer/rb-visualizer-plugin.c | 1 +
shell/rb-missing-plugins.c | 1 +
widgets/rb-entry-view.c | 1 +
5 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/lib/gseal-gtk-compat.h b/lib/gseal-gtk-compat.h
index 83c5bf1..57b8d59 100644
--- a/lib/gseal-gtk-compat.h
+++ b/lib/gseal-gtk-compat.h
@@ -25,7 +25,7 @@ G_BEGIN_DECLS
#if !GTK_CHECK_VERSION (2, 19, 5)
#define gtk_widget_get_realized(widget) GTK_WIDGET_REALIZED(widget)
-#define gtk_widget_set_realized(widget) GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED)
+#define gtk_widget_set_realized(widget, TRUE) GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED)
#endif
#if !GTK_CHECK_VERSION (2, 18, 0)
diff --git a/plugins/status-icon/rb-status-icon-plugin.c b/plugins/status-icon/rb-status-icon-plugin.c
index 85e69f1..5035d94 100644
--- a/plugins/status-icon/rb-status-icon-plugin.c
+++ b/plugins/status-icon/rb-status-icon-plugin.c
@@ -52,6 +52,7 @@
#include "rb-stock-icons.h"
#include "eel-gconf-extensions.h"
#include "rb-builder-helpers.h"
+#include "gseal-gtk-compat.h"
#include "rb-tray-icon-gtk.h"
diff --git a/plugins/visualizer/rb-visualizer-plugin.c b/plugins/visualizer/rb-visualizer-plugin.c
index 86cfa01..451ff6c 100644
--- a/plugins/visualizer/rb-visualizer-plugin.c
+++ b/plugins/visualizer/rb-visualizer-plugin.c
@@ -81,6 +81,7 @@
#include <dbus/dbus-glib.h>
#include "rb-vis-widget.h"
+#include "gseal-gtk-compat.h"
/* preferences */
#define CONF_VIS_PREFIX CONF_PREFIX "/plugins/visualizer"
diff --git a/shell/rb-missing-plugins.c b/shell/rb-missing-plugins.c
index 9526437..e1cfed1 100644
--- a/shell/rb-missing-plugins.c
+++ b/shell/rb-missing-plugins.c
@@ -29,6 +29,7 @@
#include "rb-shell-player.h"
#include "rb-debug.h"
#include "rb-podcast-manager.h"
+#include "gseal-gtk-compat.h"
#include <gst/pbutils/pbutils.h>
#include <gst/pbutils/install-plugins.h>
diff --git a/widgets/rb-entry-view.c b/widgets/rb-entry-view.c
index 73a50c6..aee8d3a 100644
--- a/widgets/rb-entry-view.c
+++ b/widgets/rb-entry-view.c
@@ -101,6 +101,7 @@
#include "eel-gconf-extensions.h"
#include "rb-shell-player.h"
#include "rb-cut-and-paste-code.h"
+#include "gseal-gtk-compat.h"
static const GtkTargetEntry rb_entry_view_drag_types[] = {
{ "application/x-rhythmbox-entry", 0, 0 },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]