I have a gsettings schema with a key of type a{ss}. I would like to bind said key to a property on an object. I have successfully used g_settings_bind and g_settings_bind_with_mapping with other keys but I don't know what type to map this key to. The GVariant is an array of dictionaries with key string and value string, but what accual glib type is that?
What GLib type should a{ss} map to when using GSettings?
367 Views Asked by Ava At
1
There are 1 best solutions below
Related Questions in DICTIONARY
- Difference between list() and dict() with generators
- Python program to produce dictionary of file extensions and sizes
- How to sort a nested dictionary by the a nested value?
- Renaming the keys of a dictionary
- VB.NET KeyNotFoundException from String()
- Numpy Vs nested dictionaries, which one is more efficient in terms of runtime and memory?
- Multiple parameters in a Dictionary
- ComboBox Not Being Filled With Unique Field Values Via Dictionary Learning
- Batch file: map a FTP server
- How to put objects into a dictionary using Dapper in C#?
- Pyparsing - Trouble parsing file to dictionary structure
- convert tuple keys of dict into a new dict
- Change the values of a list without using index
- Dictionary values missing
- How to create and add values to Dictionary in swift
Related Questions in GLIB
- Using the glib on Android : undefined reference to 'g_thread_init'
- Will this example code for g_cond_wait() lead to undefined behaviour?
- Convert int to Glib::ustring w/o stringstream
- ImageView giving glib error
- Run a function at every iteration of a GLib.MainLoop
- Kurento media server error (GLib-CRITICAL)
- (Python) glib MonitorObserver return two exception when attach (or detach) usb device. Why?
- Use of sizeof() with normal arrays and garrays
- Segmentation fault : g_ptr_array_foreach
- How do you create a dictionary that maps onto an array in GLib?
- destroying a class instance doesn't kill instances it owns in vala
- Can't create thread in vala: `GLib.Thread' does not have a default constructor
- Accessing system dbus twice gives segmentation fault
- How can I print the Jsonarray in json-Glib?
- How can I add many json strings in one JsonArray?
Related Questions in GSETTINGS
- GLib-GIO-Message: Using the 'memory' GSettings backend. Happened in Ubuntu 16.10 after going from GNOME to Unity to GNOME again
- syntax to override gsettings bytestring
- How to store int64 value in GSettings?
- Enter key stopped working in ubuntu after updating gsettings
- How to apply gsetting timeout settings only for a specific gnome shell rather than in the entire system?
- Update system wide gsettings proxy settings on Ubuntu
- Weird behavior of gsettings set a new desktop.background with cron
- How can I read a value from an array of dictionaries stored in GSettings with Vala?
- how to store an array of array of strings in gsettings
- How to get paths for relocatable schemas in Gio.Settings?
- error with dbus and gesettings inside docker container
- what is the relationship between .override files and .convert files used for overriding preferences using gschema?
- GLib-GIO-ERROR **: Settings schema 'com.github.mfru.vala-todo' is not installed
- How do I use g_settings_schema_get_key from python?
- GSettings, glib-compile-schemas and Eclipse
Related Questions in GVARIANT
- How can I read a value from an array of dictionaries stored in GSettings with Vala?
- Is it possible to store, set or update a value inside an existing GVariant
- GLib - getting the number of strings in array returned over D-Bus
- Can you avoid GLib variant references and memory leaks when using g_variant_get?
- Define a GLib.Variant in Python
- GVariantBuilder build a(ii) or a(vv)
- How to send a two dimensional array over gdbus?
- How can I create a GVariant* to feed to g_variant_iter_new?
- C++ STL containters to Glib conversion
- Sending pointers to another process using GVariant
- What GLib type should a{ss} map to when using GSettings?
- Template class static string member not initialized correctly
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You need to use
g_settings_bind_with_mapping(), sincea{ss}is not supported byg_settings_bind().a{ss}is a dictionary mapping strings to strings, and I would probably represent it in GLib as aGHashTablemapping strings to strings.