[rhythmbox] sourcelist: remove some gtk 2.8 compatibility code
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] sourcelist: remove some gtk 2.8 compatibility code
- Date: Wed, 17 Mar 2010 12:57:56 +0000 (UTC)
commit 136652b672429619f04be0b0d229c9ebf805ba7d
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Mar 17 22:54:29 2010 +1000
sourcelist: remove some gtk 2.8 compatibility code
sources/rb-sourcelist.c | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/sources/rb-sourcelist.c b/sources/rb-sourcelist.c
index f78f76a..cc4fc5d 100644
--- a/sources/rb-sourcelist.c
+++ b/sources/rb-sourcelist.c
@@ -770,19 +770,7 @@ rb_sourcelist_init (RBSourceList *sourcelist)
NULL);
g_signal_connect_object (renderer, "edited", G_CALLBACK (source_name_edited_cb), sourcelist, 0);
- if (g_object_class_find_property (G_OBJECT_GET_CLASS (sourcelist->priv->treeview), "show-expanders") != NULL) {
- g_object_set (sourcelist->priv->treeview, "show-expanders", FALSE, NULL);
- } else {
- /* Hidden column for the normal treeview expander (gtk 2.8 compatibility) */
- GtkTreeViewColumn *hidden;
-
- hidden = gtk_tree_view_column_new ();
-
- g_object_set (hidden, "visible", FALSE, NULL);
-
- gtk_tree_view_append_column (GTK_TREE_VIEW (sourcelist->priv->treeview), hidden);
- gtk_tree_view_set_expander_column (GTK_TREE_VIEW (sourcelist->priv->treeview), hidden);
- }
+ g_object_set (sourcelist->priv->treeview, "show-expanders", FALSE, NULL);
/* Expander */
renderer = gossip_cell_renderer_expander_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]