mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
9e123695d0
commit
5526e91b6e
@ -611,8 +611,9 @@ meta_frames_attach_style (MetaFrames *frames,
|
||||
gtk_style_detach (frame->style);
|
||||
|
||||
/* Weirdly, gtk_style_attach() steals a reference count from the style passed in */
|
||||
g_object_ref (GTK_WIDGET (frames)->style);
|
||||
frame->style = gtk_style_attach (GTK_WIDGET (frames)->style, frame->window);
|
||||
g_object_ref (gtk_widget_get_style (GTK_WIDGET (frames)));
|
||||
frame->style = gtk_style_attach (gtk_widget_get_style (GTK_WIDGET (frames)),
|
||||
frame->window);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -522,7 +522,7 @@ meta_window_menu_popup (MetaWindowMenu *menu,
|
||||
button,
|
||||
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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user