[gnome-control-center/wip/input-sources: 12/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: 12/14] region: Fix a couple of memory leaks
- Date: Mon, 23 Apr 2012 21:12:20 +0000 (UTC)
commit d12f29841c1d1cd107504a7b0078bfb5d4f218f7
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 c4b48b5..f465b23 100644
--- a/panels/region/gnome-region-panel-input.c
+++ b/panels/region/gnome-region-panel-input.c
@@ -661,10 +661,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
@@ -746,6 +744,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]