From 05db7dd24691920e1e7c53f0a673a28ca94fad07 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 25 Apr 2009 15:41:10 +0000 Subject: [PATCH] (gtk) fix new filtering bug in gtk client --- gtk/details.c | 6 +++--- gtk/tr-window.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/details.c b/gtk/details.c index 742b69960..1531d68ce 100644 --- a/gtk/details.c +++ b/gtk/details.c @@ -516,7 +516,7 @@ new_priority_combo( struct DetailsImpl * di ) di->bandwidthComboTag = tag; /* cleanup */ - g_object_unref( G_OBJECT( store ) ); + g_object_unref( store ); return w; } @@ -1545,7 +1545,7 @@ peer_page_new( struct DetailsImpl * di ) v = gtk_tree_view_new_with_model( GTK_TREE_MODEL( store ) ); g_signal_connect( v, "button-release-event", G_CALLBACK( on_tree_view_button_released ), NULL ); gtk_tree_view_set_rules_hint( GTK_TREE_VIEW( v ), TRUE ); - g_object_unref( G_OBJECT( store ) ); + g_object_unref( store ); str = getWebseedColumnNames( WEBSEED_COL_URL ); r = gtk_cell_renderer_text_new( ); @@ -1587,7 +1587,7 @@ peer_page_new( struct DetailsImpl * di ) g_signal_connect( v, "query-tooltip", G_CALLBACK( onPeerViewQueryTooltip ), NULL ); #endif - g_object_unref( G_OBJECT( store ) ); + g_object_unref( store ); g_signal_connect( v, "button-release-event", G_CALLBACK( on_tree_view_button_released ), NULL ); diff --git a/gtk/tr-window.c b/gtk/tr-window.c index b63f233e4..cdcd49e35 100644 --- a/gtk/tr-window.c +++ b/gtk/tr-window.c @@ -112,7 +112,7 @@ getFilterName( int mode ) case FILTER_MODE_DOWNLOADING: return "show-downloading"; case FILTER_MODE_SEEDING: return "show-seeding"; case FILTER_MODE_PAUSED: return "show-paused"; - default: return "show-active"; /* the fallback */ + default: return "show-all"; /* the fallback */ } } static int