popover: Do not set GTK_STYLE_CLASS_OSD directly

That's up to the caller, popovers are by design not only meant to
have that role.
This commit is contained in:
Carlos Garnacho 2014-01-14 18:06:38 +01:00
parent 462e7f0de1
commit 649004ce43

View File

@ -90,8 +90,6 @@ gtk_popover_init (GtkPopover *popover)
widget = GTK_WIDGET (popover);
gtk_widget_set_has_window (widget, TRUE);
popover->priv = priv = gtk_popover_get_instance_private (popover);
gtk_style_context_add_class (gtk_widget_get_style_context (widget),
GTK_STYLE_CLASS_OSD);
priv->modal = TRUE;
}