diff options
author | Andre Klapper <a9016009@gmx.de> | 2010-04-11 01:30:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-19 16:54:28 +0200 |
commit | 5489edff2a9e4fac49d82f945e5d43f7940c5198 (patch) | |
tree | 9cac30df1629a58e6bc3db6f778c2b3ccb53cf4a /src/canberra-gtk-module.c | |
parent | 04a2c7cac4ff384880309b950c8201803aa37786 (diff) |
Compile with -DGSEAL_ENABLE. Fixes bug 27048.
Diffstat (limited to 'src/canberra-gtk-module.c')
-rw-r--r-- | src/canberra-gtk-module.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/canberra-gtk-module.c b/src/canberra-gtk-module.c index da37756..90c583a 100644 --- a/src/canberra-gtk-module.c +++ b/src/canberra-gtk-module.c @@ -450,7 +450,7 @@ static void dispatch_sound_event(SoundEventData *d) { gboolean is_xembed; is_xembed = - GTK_WIDGET_REALIZED(GTK_WIDGET(d->object)) && + gtk_widget_get_realized(GTK_WIDGET(d->object)) && window_is_xembed( gtk_widget_get_display(GTK_WIDGET(d->object)), gtk_widget_get_window(GTK_WIDGET(d->object))); @@ -568,7 +568,7 @@ static void dispatch_sound_event(SoundEventData *d) { * minimized. We then store this information, so that we know * later on when the window is unminimized again. */ - if (GTK_WIDGET_REALIZED(GTK_WIDGET(d->object))) { + if (gtk_widget_get_realized(GTK_WIDGET(d->object))) { GdkDisplay *display; display = gtk_widget_get_display(GTK_WIDGET(d->object)); @@ -639,7 +639,7 @@ static void dispatch_sound_event(SoundEventData *d) { } else if (GTK_IS_MENU_ITEM(d->object) && d->signal_id == signal_id_menu_item_activate) { - if (!GTK_MENU_ITEM(d->object)->submenu) + if (!gtk_menu_item_get_submenu(GTK_MENU_ITEM(d->object))) ret = ca_gtk_play_for_event(d->event, 0, CA_PROP_EVENT_ID, "menu-click", CA_PROP_EVENT_DESCRIPTION, "Menu item clicked", @@ -859,7 +859,7 @@ static gboolean emission_hook_cb(GSignalInvocationHint *hint, guint n_param_valu if (hint->signal_id != signal_id_widget_hide && hint->signal_id != signal_id_dialog_response && - !GTK_WIDGET_DRAWABLE(object)) + !gtk_widget_is_drawable(GTK_WIDGET (object))) return TRUE; d = g_slice_new0(SoundEventData); |