[gnome-control-center/wip/input-sources: 13/14] region: Fix a couple of memory leaks
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/input-sources: 13/14] region: Fix a couple of memory leaks
- Date: Wed, 18 Apr 2012 15:29:43 +0000 (UTC)
commit 2ab1554a502407abd8d6a864bd853a4a3e31187a
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Apr 18 17:14:02 2012 +0200
region: Fix a couple of memory leaks
panels/region/gnome-region-panel-input.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-input.c b/panels/region/gnome-region-panel-input.c
index fe025ab..7dfbae7 100644
--- a/panels/region/gnome-region-panel-input.c
+++ b/panels/region/gnome-region-panel-input.c
@@ -657,10 +657,8 @@ static void
selection_changed (GtkTreeSelection *selection,
GtkBuilder *builder)
{
- GList *selected;
-
- selected = gtk_tree_selection_get_selected_rows (selection, NULL);
- gtk_widget_set_sensitive (WID ("ok-button"), selected != NULL);
+ gtk_widget_set_sensitive (WID ("ok-button"),
+ gtk_tree_selection_get_selected (selection, NULL, NULL));
}
static void
@@ -742,6 +740,8 @@ input_chooser_new (GtkBuilder *main_builder)
GNOMECC_UI_DIR "/gnome-region-panel-input-chooser.ui",
NULL);
chooser = WID ("input_source_chooser");
+ g_object_set_data_full (G_OBJECT (chooser), "builder", builder, g_object_unref);
+
filtered_list = WID ("filtered_input_source_list");
filter_entry = WID ("input_source_filter");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]