aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk/parser.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk: look for GtkImages on regular GtkMenuItems tooDan Williams2016-02-231-19/+32
| | | | | | | | | GtkImageMenuItem is deprecated, and the recommended replacement is a normal GtkMenuItem packed manually with a label and an image. To ensure applications that use recommended GTK practices can still show menu item images, check the children of a normal GtkMenuItem for a GtkImage too, just like is done for the label child.
* gtk: fix some GTKv3 deprecations and get rid of HAVE_GTK3Dan Williams2016-02-231-0/+4
|\
| * gtk: look for GtkImages on regular GtkMenuItems tooDan Williams2016-02-221-19/+32
| | | | | | | | | | | | | | | | | | GtkImageMenuItem is deprecated, and the recommended replacement is a normal GtkMenuItem packed manually with a label and an image. To ensure applications that use recommended GTK practices can still show menu item images, check the children of a normal GtkMenuItem for a GtkImage too, just like is done for the label child.
| * gtk: fix some GTKv3 deprecations and get rid of HAVE_GTK3Dan Williams2016-02-221-0/+4
|/
* Parser: don't override the label for stock items if a custom one is providedMarco Trevisan (Treviño)2015-03-041-1/+1
|
* Parser: make sure that the old dbus menuitem is disconnected from the widget ↵Marco Trevisan (Treviño)2014-06-071-0/+1
| | | | | | | before recreating it When a dbus menuitem has to be recreated, we need to disconnect the widget from it, or the old one will be reused at next parsing cycle.
* Check to ensure the property isn't set to NULLMatthew Brush2013-12-131-2/+6
|
* Use "insert" signal instead of "child-added" (LP: #1203888)Alistair Buxton2013-11-031-8/+0
| | | | | | | In recent Gtk+2 versions, the "insert" signal has been backported from Gtk+3. This replaces the "child-added" signal, which was carried in an Ubuntu-specific patch and was dropped in Saucy.
* When a widget internally holds a link to a dbusmenuitem, keep a ref on that ↵Charles Kerr2013-06-181-2/+2
| | | | dbusmenuitem until that link is removed.
* stop listening to a widget's signals when it's removed from the menu tree ↵Charles Kerr2013-03-131-29/+51
| | | | that we're mirroring. This condition was detected by a flood of g_warnings, so add a regression test to confirm that the warning messages no longer appear.
* comment copyeditingCharles Kerr2012-10-241-1/+1
|\
| * fix grammar: use of its and it'sCharles Kerr2012-10-071-1/+1
| |
* | spacingAlbert Astals2012-10-161-5/+5
| |
* | Call gtk_menu_set_active with the position of the activated menu itemAlbert Astals2012-10-161-0/+8
|/ | | | | Fixes interaction with GtkRecentChooserMenu (bug 752674)
* parser.c: make sure to disconnect from gtksettings::gtk-menu-imagesLars Uebernickel2012-09-241-6/+16
|
* pay attention to GtkSettings's gtk-menu-images value as it changes on the ↵Michael Terry2012-09-101-0/+63
| | | | client end
* switch the smoke test to a g_debug statementCharles Kerr2012-04-101-6/+7
|
* make the signal disconnect warnings in dbusmenu-gtk more fine-grained.Charles Kerr2012-04-101-93/+113
|
* warn if we're not able to disconnect from the signals that we're monitoringCharles Kerr2012-04-091-29/+42
|
* don't use g_intern_static_string() as a drop-in replacement for strcmp()Charles Kerr2012-04-061-51/+107
|
* fix prop_value leak in widget_notify_cb() when a widget's label changesCharles Kerr2012-04-061-5/+4
|
* remove convoluted & unnecessary branch in update_icon()Charles Kerr2012-04-061-12/+7
|
* fix dbusmenu_item_freed(), it called g_object_get_data() on a finalized GObjectCharles Kerr2012-04-061-23/+11
|
* Don't listen for "changed" events from the screen's default GtkIconTheme. ↵Charles Kerr2012-03-211-51/+0
| | | | | | | | | Fixes lp bug #953509 The crash in #953509 was being caused by the last two lines of theme_changed_cb() (a) leaving a dangling handler id in priv.theme_changed_sig, and (b) not remembering the handler id of its own signal connection. However after testing I don't see any reason to keep any of the theme handling code at all. "But wait," you say. "How will our menu icons follow the theme changes?" It works in practice anyway because we always listen for property changes to our reference GtkImage, **and** we listen for property changes to its GtkImageMenuItem parent so that if the GtkImageMenuItem changes GtkImages we can stop listening to the old one and start listening to the new one.
* Missing a couple of cases of removing the signal handler and clearing the ↵Ted Gould2012-03-091-4/+12
| | | | stored value
* Don't need to setup this signal twiceTed Gould2012-03-021-3/+0
|
* Moving the adding of signals to the update_icon function so that everyone ↵Ted Gould2012-03-021-12/+32
| | | | gets them
* Changing 'update_icon' to take more variables so we can do more fun stuff ↵Ted Gould2012-03-021-6/+12
| | | | with it soon!
* Track the theme changed signal so we ensure that we can drop it eventuallyTed Gould2012-03-021-1/+8
|
* Use defines instead of stringsTed Gould2012-02-151-1/+1
|\
| * Making sure our strings come from defines to avoid typosTed Gould2012-02-121-1/+1
| |
* | Fix some of the issues with throwing criticalsTed Gould2012-02-151-2/+7
|\ \ | |/ |/|
| * Ensuring that we don't just unparent a menu item, we remove it from the list ↵Ted Gould2012-02-071-2/+7
| | | | | | | | of children that it has
* | Parse and handle a11y descriptionsTed Gould2012-02-101-0/+58
|\ \ | |/ |/|
| * Use the #define property name instead of a stringTed Gould2012-02-101-3/+3
| |
| * Adding a detail hint on the notify signalTed Gould2012-02-101-1/+1
| |
| * Fix up monitoring of the atk object, didn't understand that notification was ↵Luke Yelavich2012-02-011-5/+8
| | | | | | | | the same as the GTK widgets as well.
| * When parsing an existing GTK menu hierarchy, we should also set theLuke Yelavich2012-01-311-0/+53
|/ | | | | | DBUSMENU_MENU_ITEM_ACCESSIBLE_DESC property, if the accessible name for the menu differs from the text of the menu item label.
* Include config.h to get the HAVE_GTK3 defineTed Gould2012-01-261-0/+1
|
* Missing commaTed Gould2012-01-261-1/+1
|
* Remove custom WITH_GTK3 and use the HAVE_GTK3Ted Gould2012-01-261-3/+3
|
* in gtk3, use stock signals instead of Ubuntu-specific onesRyan Lortie2012-01-121-12/+23
|
* Don't try to get objects from boolean values. Handle the 'always show ↵Ted Gould2011-10-131-2/+7
| | | | image' property by getting the image from the object and using that
* Adding in warnings to protect watch_submenuTed Gould2011-09-191-0/+3
|
* Unsetting the property valueTed Gould2011-06-171-0/+3
|\
| * Unset the value as specified in bug 785828Jonathan Landis2011-06-161-0/+3
| |
* | Toggle visibility to help EclipseTed Gould2011-05-311-0/+18
|\|
| * ref menu until we're done toggling its visibilityMichael Terry2011-05-181-1/+3
| |
| * toggle visibility of menus to fix Eclipse RCP appsMichael Terry2011-04-271-0/+16
| |
* | Dropping the serializable menu item. Not a bad idea, but we can do better.Ted Gould2011-04-261-8/+1
|/