summaryrefslogtreecommitdiff
path: root/gtk/gtkmenutracker.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2014-04-28 10:12:51 +0200
committerMatthias Clasen <mclasen@redhat.com>2014-04-28 14:14:41 -0400
commit48db84182211324cc70703da609d15e3a568f5f6 (patch)
treedf4b6510c533faaca024893ab411c344f9de7976 /gtk/gtkmenutracker.c
parent06ab1d9203ecc6fba6371fd3c292546ccfa52166 (diff)
downloadgtk+-48db84182211324cc70703da609d15e3a568f5f6.tar.gz
GtkMenuTracker: make "is-visible" a property
Make this a property just like all of the other things and make the APIs for accessing it non-private (but add a note that they are not intended to be used).
Diffstat (limited to 'gtk/gtkmenutracker.c')
-rw-r--r--gtk/gtkmenutracker.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkmenutracker.c b/gtk/gtkmenutracker.c
index 86ee9fca5d..ee6f8b0dd7 100644
--- a/gtk/gtkmenutracker.c
+++ b/gtk/gtkmenutracker.c
@@ -367,19 +367,19 @@ gtk_menu_tracker_add_items (GtkMenuTracker *tracker,
* case that we want to show a separator, but we will never do
* that because separators are not shown for this fake section.
*/
- if (_gtk_menu_tracker_item_may_disappear (item))
+ if (gtk_menu_tracker_item_may_disappear (item))
{
GtkMenuTrackerSection *fake_section;
fake_section = g_slice_new0 (GtkMenuTrackerSection);
fake_section->is_fake = TRUE;
fake_section->model = g_object_ref (item);
- fake_section->handler = g_signal_connect (item, "visibility-changed",
+ fake_section->handler = g_signal_connect (item, "notify::is-visible",
G_CALLBACK (gtk_menu_tracker_item_visibility_changed),
tracker);
*change_point = g_slist_prepend (*change_point, fake_section);
- if (_gtk_menu_tracker_item_is_visible (item))
+ if (gtk_menu_tracker_item_get_is_visible (item))
{
(* tracker->insert_func) (item, offset, tracker->user_data);
fake_section->items = g_slist_prepend (NULL, NULL);