aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/parser.c
Commit message (Collapse)AuthorAgeFilesLines
...
* respond to opened and closed events for the benefit of any watching applicationMichael Terry2011-04-051-0/+38
|
* Remove some code duplication introduced in this branchChris Coulson2011-03-301-14/+13
|
* - Don't change the type of existing menu items in the server. ThisChris Coulson2011-03-301-12/+62
| | | | | isn't handled in the client too well - Handle a GtkMenuItem's GtkLabel being removed too
* Remove the now unneeded null pointer check on label in ↵Chris Coulson2011-03-301-17/+14
| | | | | | | construct_dbusmenu_for_widget. Also, don't use a strcmp in widget_notify_cb for checking if the menuitem is a separator. Just do a null pointer check on pdata->label instead
* Revert the last commit and handle the same problem in the parser insteadChris Coulson2011-03-301-1/+21
|
* Entering and exiting the GDK threads when calling up to GTKOleg Shparber2011-03-211-0/+2
|
* Add handling for children getting removedTed Gould2011-03-161-6/+50
|\
| * Update to current trunkTed Gould2011-03-091-5/+31
| |\
| * | If we call the parse function and we already have the menu item built for ↵Ted Gould2011-03-081-6/+15
| | | | | | | | | | | | the passed in value let's just use that and not bother looking any further.
| * | Disconnecting the child removed handlersTed Gould2011-03-081-0/+2
| | |
| * | Removing the dbusmenu menuitem from the parent if it gets removed on the GTK ↵Ted Gould2011-03-081-0/+14
| | | | | | | | | | | | side
| * | Add a callback for child-removed as wellTed Gould2011-03-081-0/+19
| | |
* | | Empty images are images tooTed Gould2011-03-161-0/+3
|\ \ \
| * | | handle empty image typesMichael Terry2011-03-161-0/+3
| | | |
* | | | Not everything is a menuitemTed Gould2011-03-151-1/+3
|/ / /
* | | be a little more cautious about pointers in sanitize_label_textMichael Terry2011-03-141-2/+8
| | |
* | | Add a function to get the cached menu itemTed Gould2011-03-091-0/+19
| | |
* | | respect use-underline and use-markup of labels in menu itemsMichael Terry2011-03-091-2/+28
| |/ |/|
* | Get the label and remove markup so that we get the mnemonicsTed Gould2011-03-091-5/+26
|\ \
| * | sanitize label text to strip pango markupMichael Terry2011-03-091-5/+26
| | |
| * | pass on mnemonics and markup from labelMichael Terry2011-03-081-2/+2
| |/
* / Ensure we set the CACHED_MENUITEM data on GtkWidget'sChris Coulson2011-03-081-0/+5
|/
* Disconnecting theme changed on normal cleanup as well to ensure it's benign.Ted Gould2011-03-011-8/+10
|\
| * Ensure we disconnect theme_changed_cb if the DbusmenuMenuitem disappears, butChris Coulson2011-02-281-8/+10
| | | | | | | | | | | | the corresponding GtkMenuItem stays alive. This shouldn't really be a problem, as dbusmenu_item_freed *should* do enough cleaning up to ensure that theme_changed_cb is inert if it fires later on. Just do this to be safe though
* | Adding a weak pointer to the submenuTed Gould2011-03-011-0/+11
|\ \
| * | Oops, fix a silly typoChris Coulson2011-03-011-1/+1
| | |
| * | Ensure we hook on to child-added signals from sub GtkMenuShell's. This broke ↵Chris Coulson2011-03-011-0/+11
| |/ | | | | | | | | | | | | in r220 in order to stop adding weak pointers on the root shell more than once. Now, we connect the signals when we create the DbusmenuMenuitem
* / disconnect some more signals when menuitem diesMichael Terry2011-02-281-0/+6
|/
* Changing the property changed handler to get the property instead of using ↵Ted Gould2011-02-241-6/+11
|\ | | | | | | accessor functions that might not be the same
| * Rework widget_notify_cb() to get the properties directly.Mathieu Trudel-Lapierre2011-02-231-6/+11
| |
* | Track the parent inside the menuitem instead of with a data property externally.Ted Gould2011-02-241-5/+1
|\ \
| * | Hold a weak pointer to each DbusmenuMenuitems parent. This avoidsChris Coulson2011-02-241-5/+1
| | | | | | | | | | | | | | | | | | 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
* | | Not commenting out code, just deleteingTed Gould2011-02-241-18/+0
|/ /
* | Disconnect the theme_changed_cb handler when widgets are destroyedChris Coulson2011-02-241-1/+12
| |
* | Various memory error fixes:Chris Coulson2011-02-231-25/+39
|/ | | | | | | | - Don't call g_object_add_weak_pointer multiple times on GtkMenuShell's - Ensure we always clean up weak pointers to avoid invalid writes when objects are destroyed - If a GtkWidget is destroyed before it's DbusmenuMenuitem, don't try to access it with g_object_steal_data
* Fixing transfer from the parser to be fullTed Gould2011-02-211-1/+1
|
* merge trunkMartin Pitt2011-02-211-88/+150
|\
| * make sure other icon property is removed when setting oneMichael Terry2011-02-171-0/+4
| |
| * fix icon usage -- watch more signals, handle gicons, respect ↵Michael Terry2011-02-101-88/+146
| | | | | | | | always-show-image better
* | Fix GI annotations for DbusmenuGtkMartin Pitt2011-02-161-10/+10
|/
* Handle ChildAdded on GtkShell items and clean up the code so that it has ↵Ted Gould2011-02-041-12/+89
|\ | | | | | | single functions for doing common operations.
| * watch for new menu items being added to existing menu shellsMichael Terry2011-02-041-12/+85
|/
* keep track of objects that we set notifies forMichael Terry2011-02-031-11/+34
|
* disconnect signals when done with menuitemMichael Terry2011-02-021-0/+15
|
* Handle the case where we don't have a cached item. Not sure how that'd be, ↵Ted Gould2011-01-311-2/+10
| | | | but we shouldn't let it drop.
* Switching to take_children() so that we can ensure all the data remains validTed Gould2011-01-311-4/+6
|
* notice new submenusMichael Terry2011-01-281-0/+21
|
* Making the parser recognize when it hits serializable menu itemsTed Gould2011-01-271-4/+16
|\
| * Fix changing prototypes.Ted Gould2011-01-271-1/+1
| |
| * Looking for the serializable menu item and using it's build function if it ↵Ted Gould2011-01-251-5/+17
| | | | | | | | is one.