aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib/menuitem.c
Commit message (Collapse)AuthorAgeFilesLines
* Delaying the removal from the hashtable.Ted Gould2011-03-011-2/+18
|
* Putting a protection in for bad key values.Ted Gould2011-03-011-0/+1
|
* The last commit causes the warning in dbusmenu_menuitem_property_is_default ↵Chris Coulson2011-03-011-7/+2
| | | | | | | | to be thrown when removing a property that has no default value. This warning seems bogus though, as any property that is not in the menuitems local property list is a default value (as that is what dbusmenu_menuitem_property_get* will return). Simplify this function to work like this and drop the warning
* Fix LP: #723873 - when a menuitems property is restored to a default value, ↵Chris Coulson2011-02-281-17/+16
| | | | | | | | | | | | the new state is not updated correctly on the listening client. Make dbusmenu_menuitem_property_remove call dbusmenu_menuitem_property_set_variant with a NULL value rather than manipulating the properties directly. When removing a property that has a default value now, it will signal PROPERTY_CHANGED with the default value, which means that changing a property from non-default to default over the wire (which really just deletes the property) now works correctly. This is also now more aligned with how dbusmenu_menuitem_property_get* works, which will return the default value for a property after removing the property from the menuitem
* Making sure to grab the variant and dispose of it in handle_event.Ted Gould2011-02-241-1/+12
|
* Marking as having details available in the signalTed Gould2011-02-241-1/+1
|
* Fixing signal emition to use the saved value instead of the enumTed Gould2011-02-241-1/+1
|
* Track the parent inside the menuitem instead of with a data property externally.Ted Gould2011-02-241-2/+105
|\
| * Adding a transfer annotation for the get_parent functionTed Gould2011-02-241-1/+1
| |
| * Checking to ensure we're the parent before deletingTed Gould2011-02-241-0/+5
| |
| * Hold a weak pointer to each DbusmenuMenuitems parent. This avoidsChris Coulson2011-02-241-2/+100
| | | | | | | | | | | | using g_object_{get/set}_data for storing a nodes parent in the parser code, and the associated problems with that (ie, a child out-living its parent, leading to invalid reads
* | Adding an 'event' signal for generic event handlingTed Gould2011-02-241-1/+23
|\ \ | |/ |/|
| * Switch signal handler to return bool so that we can signal if someone has ↵Ted Gould2011-02-231-6/+7
| | | | | | | | handled it
| * Sync to trunkTed Gould2011-02-221-379/+497
| |\
| * | Should return VOIDTed Gould2011-02-221-1/+1
| | |
| * | Now emit that signal appropriatelyTed Gould2011-01-281-0/+3
| | |
| * | Adding a signal for eventsTed Gould2011-01-281-0/+18
| | |
* | | Only send property updates if the item has been already requested.Ted Gould2011-02-241-0/+14
|\ \ \
| * | | Tracking whether we've been exposedTed Gould2011-02-181-2/+7
| | | |
| * | | Adding a stub for exposed checkingTed Gould2011-02-181-0/+9
| | | |
* | | | Allow sending only some properties based on what is requested.Ted Gould2011-02-241-1/+28
|\ \ \ \
| * | | | If there's a singular NULL entry we also want the full listTed Gould2011-02-231-1/+1
| | | | |
| * | | | Handle a request for selective properties and give less data backTed Gould2011-02-181-1/+28
| |/ / /
* | | | Fix up documentation and make it part of make checkTed Gould2011-02-241-1/+1
|\ \ \ \
| * | | | Fixing all the menuitem documentationTed Gould2011-02-211-1/+1
| | | | |
* | | | | Make sure to not recurse if the value says we shouldn'tTed Gould2011-02-241-1/+1
|\ \ \ \ \
| * | | | | Redefine so that we don't recurse if we shouldn'tTed Gould2011-02-231-1/+1
| | |_|_|/ | |/| | |
* / | | | Only look at defaults if we have a value to compare with.Ted Gould2011-02-231-22/+25
|/ / / /
* | | | Ensure that we check the local db for the type and don't go all recursive.Ted Gould2011-02-211-1/+6
| | | |
* | | | Fleshing out the check for if a property is a default value.Ted Gould2011-02-211-2/+15
| | | |
* | | | The defaults database can, and should, handle NULL types with fallbacks.Ted Gould2011-02-211-23/+21
| | | |
* | | | If we can't get the value from our database, let's check the defaults.Ted Gould2011-02-211-1/+7
| | | |
* | | | Always replace to ensure we don't leak references.Ted Gould2011-02-211-4/+9
| | | |
* | | | Always check the type even if we don't have a value.Ted Gould2011-02-211-12/+11
| | | |
* | | | Allow for signaling the default value if it makes senseTed Gould2011-02-211-2/+11
| | | |
* | | | When we're setting a value check to see if it's the same as the default and ↵Ted Gould2011-02-211-0/+37
| | | | | | | | | | | | | | | | clear it if so.
* | | | Finally getting our very own reference for the defaultsTed Gould2011-02-211-0/+9
|/ / /
* | | merge trunkMartin Pitt2011-02-211-21/+57
|\| |
| * | Making sure all refs sink incase of floating variantsTed Gould2011-02-151-1/+1
| | |
| * | Should sink as well if given a floating reference.Ted Gould2011-02-151-1/+1
| | |
| * | Splitting a few of these out so they're easier to followTed Gould2011-02-141-2/+4
| | |
| * | Merging in the no-xml based layout branchTed Gould2011-02-141-11/+33
| |\ \
| | * | More explicit function callingTed Gould2011-02-141-1/+1
| | | |
| | * | Use the recurse parameterTed Gould2011-02-141-3/+3
| | | |
| | * | Swapt out building XML for building a big variant structureTed Gould2011-02-141-10/+32
| | | |
| * | | Adding a function to check if the property is a defaultTed Gould2011-02-141-0/+10
| |/ /
* / / Fix GI annotations for DbusmenuMartin Pitt2011-02-161-361/+362
|/ / | | | | | | | | | | | | | | Now everything is introspectable except for dbusmenu_client_add_type_handler{,_full}(). These do not take a standard GDestroyNotify argument, and thus the newfunc callback cannot get any valid scope annotation. To fix this we need to break the API and ABI.
* / take_children() shouldn't unref the items as they might get deleted before ↵Ted Gould2011-02-041-2/+2
|/ | | | the caller would be abel to use them. Making sure to put those annotations in the docs.
* Making the hashtable have a full copy and free itself appropriately.Ted Gould2011-01-211-2/+8
|
* Adding an about-to-show signal to the menuitemTed Gould2011-01-061-1/+18
|\