[rhythmbox] Bug 749388 - Part 1: Remove some deprecated properties, checked at runtime.
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] Bug 749388 - Part 1: Remove some deprecated properties, checked at runtime.
- Date: Wed, 15 Jun 2016 11:59:30 +0000 (UTC)
commit fff0ef6ca7d9e0fcdceae0b5fb769a2724ebef1a
Author: Hubert Figuière <hub figuiere net>
Date: Wed Jun 15 21:43:24 2016 +1000
Bug 749388 - Part 1: Remove some deprecated properties, checked at runtime.
sources/rb-display-page-tree.c | 4 +++-
widgets/rb-entry-view.c | 9 +++++----
2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/sources/rb-display-page-tree.c b/sources/rb-display-page-tree.c
index 46da6da..2152f2f 100644
--- a/sources/rb-display-page-tree.c
+++ b/sources/rb-display-page-tree.c
@@ -907,7 +907,9 @@ impl_constructed (GObject *object)
(GtkTreeCellDataFunc) pixbuf_cell_data_func,
display_page_tree,
NULL);
- g_object_set (renderer, "follow-state", TRUE, NULL);
+ if (gtk_check_version (3, 16, 0) != NULL) {
+ g_object_set (renderer, "follow-state", TRUE, NULL);
+ }
/* Set up the name column */
renderer = gtk_cell_renderer_text_new ();
diff --git a/widgets/rb-entry-view.c b/widgets/rb-entry-view.c
index ccff48f..50632ad 100644
--- a/widgets/rb-entry-view.c
+++ b/widgets/rb-entry-view.c
@@ -1855,10 +1855,11 @@ rb_entry_view_constructed (GObject *object)
/* Playing icon column */
column = GTK_TREE_VIEW_COLUMN (gtk_tree_view_column_new ());
renderer = rb_cell_renderer_pixbuf_new ();
- g_object_set (renderer,
- "stock-size", GTK_ICON_SIZE_MENU,
- "follow-state", TRUE,
- NULL);
+ g_object_set (renderer, "stock-size", GTK_ICON_SIZE_MENU, NULL);
+ if (gtk_check_version (3, 16, 0) != NULL) {
+ g_object_set (renderer, "follow-state", TRUE, NULL);
+ }
+
gtk_tree_view_column_pack_start (column, renderer, TRUE);
gtk_tree_view_column_set_cell_data_func (column, renderer,
(GtkTreeCellDataFunc)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]