Replace left-over accesses of struct members

When replacing direct accesses with accessor functions, two snippets
were left out. Mutter now builds with GSEAL_ENABLE.

https://bugzilla.gnome.org/show_bug.cgi?id=595496
This commit is contained in:
Florian Müllner 2010-05-10 23:40:06 +02:00
parent 9e123695d0
commit 5526e91b6e
2 changed files with 4 additions and 3 deletions

View File

@ -611,8 +611,9 @@ meta_frames_attach_style (MetaFrames *frames,
gtk_style_detach (frame->style); gtk_style_detach (frame->style);
/* Weirdly, gtk_style_attach() steals a reference count from the style passed in */ /* Weirdly, gtk_style_attach() steals a reference count from the style passed in */
g_object_ref (GTK_WIDGET (frames)->style); g_object_ref (gtk_widget_get_style (GTK_WIDGET (frames)));
frame->style = gtk_style_attach (GTK_WIDGET (frames)->style, frame->window); frame->style = gtk_style_attach (gtk_widget_get_style (GTK_WIDGET (frames)),
frame->window);
} }
void void

View File

@ -522,7 +522,7 @@ meta_window_menu_popup (MetaWindowMenu *menu,
button, button,
timestamp); timestamp);
if (!GTK_MENU_SHELL (menu->menu)->have_xgrab) if (!gtk_widget_get_visible (menu->menu))
meta_warning ("GtkMenu failed to grab the pointer\n"); meta_warning ("GtkMenu failed to grab the pointer\n");
} }