[easytag/wip/win32: 6/6] Fix CDDB dialog flag controls
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/win32: 6/6] Fix CDDB dialog flag controls
- Date: Mon, 25 Jan 2016 17:56:36 +0000 (UTC)
commit 26e5270b7ffe5d63872402ed19d932890e724231
Author: David King <amigadave amigadave com>
Date: Mon Jan 25 17:10:06 2016 +0000
Fix CDDB dialog flag controls
Since commit bbf918f8427950734d0101ef2744fff57eaa4b7b,
et_settings_flags_toggle_get() and et_settings_flags_toggle_set() expect
widgets passed to them to have a "flags-key" data item to be set to the
name of the appropriate setting. Make this so for the search fields and
categories widgets.
https://bugzilla.gnome.org/show_bug.cgi?id=761018
src/cddb_dialog.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/cddb_dialog.c b/src/cddb_dialog.c
index 7ffa57c..be688d9 100644
--- a/src/cddb_dialog.c
+++ b/src/cddb_dialog.c
@@ -2761,6 +2761,8 @@ init_search_field_check (GtkWidget *widget)
{
g_object_set_data (G_OBJECT (widget), "flags-type",
GSIZE_TO_POINTER (ET_TYPE_CDDB_SEARCH_FIELD));
+ g_object_set_data (G_OBJECT (widget), "flags-key",
+ (gpointer) "cddb-search-fields");
g_settings_bind_with_mapping (MainSettings, "cddb-search-fields", widget,
"active", G_SETTINGS_BIND_DEFAULT,
et_settings_flags_toggle_get,
@@ -2771,6 +2773,8 @@ init_search_category_check (GtkWidget *widget)
{
g_object_set_data (G_OBJECT (widget), "flags-type",
GSIZE_TO_POINTER (ET_TYPE_CDDB_SEARCH_CATEGORY));
+ g_object_set_data (G_OBJECT (widget), "flags-key",
+ (gpointer) "cddb-search-categories");
g_settings_bind_with_mapping (MainSettings, "cddb-search-categories",
widget, "active", G_SETTINGS_BIND_DEFAULT,
et_settings_flags_toggle_get,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]